geoip: Correctly set location

Mon, 04 Jan 2016 17:08:12 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 04 Jan 2016 17:08:12 +0000
changeset 22
67c2b47a00c7
parent 21
3a89f5722626
child 23
aeaef24372ef

geoip: Correctly set location

geoip.lua file | annotate | diff | comparison | revisions
--- a/geoip.lua	Mon Jan 04 17:07:51 2016 +0000
+++ b/geoip.lua	Mon Jan 04 17:08:12 2016 +0000
@@ -27,7 +27,7 @@
 			if location.country_name then
 				table.insert(l, location.country_name);
 			end
-			conn.location = table.concat(l, ", ");
+			info.conn.location = table.concat(l, ", ");
 		else
 			log("debug", "Failed to find location for IP %q: %s", tostring(ip), tostring(err));
 		end

mercurial