mirror of
https://github.com/nmap/nmap.git
synced 2025-12-18 05:29:02 +00:00
Adds nil check
This commit is contained in:
@@ -76,7 +76,7 @@ end
|
|||||||
action = function(host,port)
|
action = function(host,port)
|
||||||
local output = ipinfodb(host.ip)
|
local output = ipinfodb(host.ip)
|
||||||
|
|
||||||
if(#output~=0) then
|
if(output and #output~=0) then
|
||||||
output.name = host.ip
|
output.name = host.ip
|
||||||
if host.targetname then
|
if host.targetname then
|
||||||
output.name = output.name.." ("..host.targetname..")"
|
output.name = output.name.." ("..host.targetname..")"
|
||||||
|
|||||||
Reference in New Issue
Block a user