mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix #8589
This commit is contained in:
parent
8220a92177
commit
a4d28d59f2
6 changed files with 33 additions and 61 deletions
|
|
@ -692,12 +692,11 @@ end
|
|||
|
||||
-- getservbyport
|
||||
function getservbyport(port_num, proto)
|
||||
if (proto == nil) then
|
||||
proto = "TCP"
|
||||
end
|
||||
|
||||
if not port_num then return '' end
|
||||
port_num = tonumber(port_num)
|
||||
if not port_num then return '' end
|
||||
|
||||
if not proto then proto = "TCP" end
|
||||
proto = string.lower(proto)
|
||||
|
||||
-- io.write(port_num.."@"..proto.."\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue