1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-24 15:19:03 +00:00

Fixes a trivial oversight

This commit is contained in:
nnposter
2018-08-28 23:49:25 +00:00
parent 80e8329c73
commit 8ca04d127f

View File

@@ -437,7 +437,7 @@ get_default_scheme_schemes = invert(get_default_port_ports)
-----------------------------------------------------------------------------
function get_default_scheme (port)
local number = (type(port) == "number") and port or port.number
return get_default_scheme_schemes[port]
return get_default_scheme_schemes[number]
end
if not unittest.testing() then