mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19: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:
@@ -20,7 +20,7 @@ action = function(host, port)
|
||||
local result;
|
||||
local status = true;
|
||||
|
||||
socket:connect(host.ip, port.number, port.protocol)
|
||||
socket:connect(host, port)
|
||||
status, result = socket:receive_lines(1);
|
||||
|
||||
if (not status) then
|
||||
|
||||
Reference in New Issue
Block a user