1
0
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:
nnposter
2017-04-19 17:02:32 +00:00
parent 339283d4b0
commit af6bbc35bb
6 changed files with 15 additions and 11 deletions

View File

@@ -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