Variable is_ssl is not a flag but a protocol string. Fixes #1400

This commit is contained in:
nnposter 2018-11-27 19:28:24 +00:00
parent 3a240371fc
commit f0dd1b8c8d

View file

@ -44,7 +44,7 @@ action = function (host, port)
return nil
end
socket:close()
if is_ssl then
if is_ssl == "ssl" then
-- Unlikely, but we could have negotiated SSL already.
port.version.service_tunnel = "ssl"
nmap.set_port_version(host, port, "softmatched")