mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29: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:
@@ -90,7 +90,7 @@ action = function(host, port)
|
||||
elseif (perror == pop3.err.userError) then
|
||||
currPw = nil
|
||||
else
|
||||
local socstatus = socket:connect(host.ip, port.number, bopt)
|
||||
local socstatus = socket:connect(host, port, bopt)
|
||||
if not socstatus
|
||||
then return
|
||||
else _, line = socket:receive()
|
||||
|
||||
Reference in New Issue
Block a user