1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

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.
This commit is contained in:
sven
2008-10-03 17:17:45 +00:00
parent d8e40a3546
commit 83ec6aa665

View File

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