1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 17:59:04 +00:00

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 function geoLookup(ip)
local response = http.get("www.geoplugin.net", 80, "/json.gp?ip="..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 if not stat then return nil end
local output = {} local output = {}