Update traceroute-geolocation for new geoplugin.net API

This commit is contained in:
dmiller 2013-09-02 11:36:24 +00:00
parent f6c83d2a37
commit 989ae60dd2

View file

@ -82,7 +82,7 @@ end
--
local function geoLookup(ip)
local response = http.get("www.geoplugin.net", 80, "/json.gp?ip="..ip)
local stat, loc = json.parse(response.body:match("geoPlugin%((.+)%)"))
local stat, loc = json.parse(response.body)
if not stat then return nil end
local output = {}