mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +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:
@@ -104,7 +104,7 @@ action = function(host, port)
|
||||
socket:set_timeout(5000)
|
||||
|
||||
try = nmap.new_try(function() socket:close() end)
|
||||
try(socket:connect(host.ip, port.number, port.protocol))
|
||||
try(socket:connect(host, port))
|
||||
|
||||
-- send the two first packets and never look back
|
||||
repeat
|
||||
|
||||
Reference in New Issue
Block a user