mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Fixes nil value in host details
This commit is contained in:
parent
a81f4a9de1
commit
f6d4846a17
1 changed files with 5 additions and 3 deletions
|
|
@ -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>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue