1
0
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:
david
2010-08-16 18:59:30 +00:00
parent bfffa53616
commit 3c89e089fc
55 changed files with 63 additions and 63 deletions

View File

@@ -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