From 58eca6dfb713cae9bc6c0a97480e8cd3658278c7 Mon Sep 17 00:00:00 2001 From: jah Date: Mon, 5 Apr 2010 19:39:57 +0000 Subject: [PATCH] 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). --- nselib/comm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/comm.lua b/nselib/comm.lua index fb224e49e..c796d0ef2 100644 --- a/nselib/comm.lua +++ b/nselib/comm.lua @@ -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}