mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14: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:
@@ -109,7 +109,7 @@ action = function(host, port)
|
||||
local fc
|
||||
|
||||
socket:set_timeout(10000)
|
||||
socket:connect(host.ip, port.number)
|
||||
socket:connect(host, port)
|
||||
|
||||
-- BANNER
|
||||
fc = get_ftp_code(socket)
|
||||
|
||||
Reference in New Issue
Block a user