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