From 83ec6aa66555f5320e72b8c6488f7f14e328c736 Mon Sep 17 00:00:00 2001 From: sven Date: Fri, 3 Oct 2008 17:17:45 +0000 Subject: [PATCH] It is unnecessary to prefer targetname over the ip in the request() function since host is only passed to socket:connect() which would have to resolve the targetname back to the ip. --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 867048f22..ee7402d6a 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -115,7 +115,7 @@ request = function( host, port, data, options ) options = options or {} if type(host) == 'table' then - host = host.targetname or host.ip + host = host.ip end local protocol = 'tcp'