mirror of
https://github.com/nmap/nmap.git
synced 2026-09-05 01:50:40 +00:00
Allows the port to be a simple number
This commit is contained in:
parent
5636767c85
commit
3a9b4d93af
1 changed files with 1 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ end
|
|||
-- See RFC 2616 sections 14.23 and 5.2.
|
||||
local function get_host_field(host, port)
|
||||
if not host then return nil end
|
||||
port = type(port) == "number" and {number=port} or port
|
||||
local ssl = shortport.ssl(host, port)
|
||||
local pn = port.number
|
||||
if not ssl and pn == 80 or ssl and pn == 443 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue