1
0
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:
jah
2010-04-05 19:39:57 +00:00
parent c7d97ae2c4
commit 58eca6dfb7

View File

@@ -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}