1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix a typo: modify the correct variable

This commit is contained in:
dmiller
2018-10-12 17:29:22 +00:00
parent 03639761c3
commit bf0ad07e59

View File

@@ -57,7 +57,7 @@ portrule = function(host, port)
end
-- ensure UDP
portarg = portarg:gsub("^[U:]*", "U:")
ports = ports:gsub("^[U:]*", "U:")
return port.protocol == "udp" and shortport.port_range(ports)(host, port) and
not(shortport.port_is_excluded(port.number,port.protocol))
end