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'