mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 11:59: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:
@@ -167,7 +167,7 @@ function doquery(sock, host, port, inum, rcode, records)
|
||||
if not sock then
|
||||
sock = nmap.new_socket()
|
||||
sock:set_timeout(TIMEOUT)
|
||||
local constatus, conerr = sock:connect(host.ip, port.number, port.protocol)
|
||||
local constatus, conerr = sock:connect(host, port)
|
||||
if not constatus then
|
||||
stdnse.print_debug(1,
|
||||
'Error establishing a UDP connection for %s - %s', target, conerr
|
||||
|
||||
Reference in New Issue
Block a user