Adds nil check

This commit is contained in:
paulino 2016-08-21 23:16:40 +00:00
parent cb9a184732
commit 442b82e260

View file

@ -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..")"