1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

Some fixes for script crashes due to updated shortport.ssl

This commit is contained in:
dmiller
2018-07-12 04:14:35 +00:00
parent 5318e42481
commit 622c14c115
3 changed files with 6 additions and 6 deletions

View File

@@ -174,7 +174,7 @@ local function get_host_field(host, port)
if host_header then return host_header end
if not host then return nil end
if type(port) == "number" then
port = {number=port, protocol="tcp", state="open", version={}}
port = {number=port, protocol="tcp", state="open"}
end
local scheme = shortport.ssl(host, port) and "https" or "http"
if port.number == get_default_port(scheme) then