mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 09:59:04 +00:00
Change calls in these forms:
socket:connect(host.ip, port.number) socket:connect(host.ip, port.number, port.protocol) to this: socket:connect(host, port) connect can take host and port tables now, and the default protocol is taken from the port table if possible.
This commit is contained in:
@@ -91,7 +91,7 @@ action = function(host, port)
|
||||
return nil
|
||||
end
|
||||
else
|
||||
local status, error = s:connect(host.ip, port.number, "ssl")
|
||||
local status, error = s:connect(host, port, "ssl")
|
||||
|
||||
if not status then
|
||||
if nmap.verbosity() > 0 then
|
||||
@@ -188,7 +188,7 @@ function starttls_negotiate(host, port)
|
||||
-- Works for SMTP (25) and SMTP Submission (587)
|
||||
|
||||
-- Open a standard TCP socket
|
||||
local status, error = s:connect(host.ip, port.number, "tcp")
|
||||
local status, error = s:connect(host, port, "tcp")
|
||||
|
||||
if not status then
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user