mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Update traceroute-geolocation for new geoplugin.net API
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user