mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 17:39:03 +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:
@@ -113,7 +113,7 @@ action = function( host, port )
|
||||
socket:close()
|
||||
-- set a reasonable timeout value
|
||||
socket:set_timeout(5000)
|
||||
status = socket:connect(host.ip, port.number, opt)
|
||||
status = socket:connect(host, port, opt)
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user