Skip to content

Commit

Permalink
fix(client) bad log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Aug 14, 2017
1 parent b1dfd54 commit 53be3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resty/dns/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ _M.init = function(options)
local ip, port, t = utils.parseHostname(address)
if t == "ipv6" and not options.enable_ipv6 then
-- should not add this one
log(log_DEBUG, "skipping IPv6 nameserver ", type(r) == "table" and (r[1]..":"..r[2]) or r)
log(log_DEBUG, "skipping IPv6 nameserver ", port and (ip..":"..port) or ip)
else
if port then
options.nameservers[#options.nameservers + 1] = { ip, port }
Expand Down

0 comments on commit 53be3e8

Please sign in to comment.