mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Fix a typo: modify the correct variable
This commit is contained in:
@@ -57,7 +57,7 @@ portrule = function(host, port)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- ensure UDP
|
-- ensure UDP
|
||||||
portarg = portarg:gsub("^[U:]*", "U:")
|
ports = ports:gsub("^[U:]*", "U:")
|
||||||
return port.protocol == "udp" and shortport.port_range(ports)(host, port) and
|
return port.protocol == "udp" and shortport.port_range(ports)(host, port) and
|
||||||
not(shortport.port_is_excluded(port.number,port.protocol))
|
not(shortport.port_is_excluded(port.number,port.protocol))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user