This commit is contained in:
Alfredo Cardigliano 2024-08-07 16:03:53 +02:00
parent 8220a92177
commit a4d28d59f2
6 changed files with 33 additions and 61 deletions

View file

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