mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Adds nil check
This commit is contained in:
parent
cb9a184732
commit
442b82e260
1 changed files with 1 additions and 1 deletions
|
|
@ -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..")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue