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