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) |