1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +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

@@ -157,7 +157,7 @@ Comm = {
return status, err
end
socket = nmap.new_socket()
status, err = socket:connect(host.ip, port.number, port.protocol)
status, err = socket:connect(host, port)
if (not(status)) then
return status, string.format("%s connect error: %s", self.program, err)
else