mirror of
https://github.com/nmap/nmap.git
synced 2026-08-29 04:53:24 +00:00
Update traceroute-geolocation for new geoplugin.net API
This commit is contained in:
parent
f6c83d2a37
commit
989ae60dd2
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue