Fixes nil value in host details

This commit is contained in:
MatteoBiscosi 2022-11-03 11:56:31 +01:00
parent a81f4a9de1
commit f6d4846a17

View file

@ -118,11 +118,13 @@ local function printPorts(ports)
for k,v in pairs(ports) do
local res = split(k, ":")
if tonumber(res[2]) then
if(res[1] == "udp") then
udp[tonumber(res[2]) ] = v
udp[tonumber(res[2]) ] = v
else
tcp[tonumber(res[2])] = v
end
tcp[tonumber(res[2])] = v
end
end
end
print("<tr><td valign=top><ul>")