mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 00:49:01 +00:00
Changes the port type returned from url.parse() to an actual integer, as
opposed to a string that represents an integer. Fixes #833, fixes #817.
This commit is contained in:
@@ -1504,7 +1504,7 @@ local redirect_ok_rules = {
|
||||
url_port = 443
|
||||
end
|
||||
end
|
||||
if (not url_port) or tonumber(url_port) == port.number then
|
||||
if not url_port or url_port == port.number then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user