1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +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

@@ -347,7 +347,7 @@ local function path_ok (path, hostname, port)
if pparts.authority then
if pparts.userinfo
or ( pparts.host ~= hostname )
or ( pparts.port and tonumber(pparts.port) ~= port.number ) then
or ( pparts.port and pparts.port ~= port.number ) then
return false
end
end