mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 09:59:04 +00:00
setup_connect, called by exchange, now connects to targets by IP address rather than targetname (which could sometimes be a different host or address family).
This commit is contained in:
@@ -43,7 +43,7 @@ local setup_connect = function(host, port, opts)
|
||||
host = {ip = host}
|
||||
end
|
||||
|
||||
local target = host.targetname or host.ip or host.name
|
||||
local target = host.ip
|
||||
|
||||
if type(port) ~= "table" then
|
||||
port = {number = port}
|
||||
|
||||
Reference in New Issue
Block a user