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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user