geoip.lua

changeset 22
67c2b47a00c7
parent 21
3a89f5722626
child 23
aeaef24372ef
equal deleted inserted replaced
21:3a89f5722626 22:67c2b47a00c7
25 table.insert(l, location.region); 25 table.insert(l, location.region);
26 end 26 end
27 if location.country_name then 27 if location.country_name then
28 table.insert(l, location.country_name); 28 table.insert(l, location.country_name);
29 end 29 end
30 conn.location = table.concat(l, ", "); 30 info.conn.location = table.concat(l, ", ");
31 else 31 else
32 log("debug", "Failed to find location for IP %q: %s", tostring(ip), tostring(err)); 32 log("debug", "Failed to find location for IP %q: %s", tostring(ip), tostring(err));
33 end 33 end
34 end); 34 end);
35 end) 35 end)

mercurial