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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user