0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

net: fix debug for dnsopts

Prevent debug call from showing [object Object] for dnsopts in
lookupAndConnect

PR-URL: https://github.com/nodejs/io.js/pull/2059
Reviewed-by: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Evan Lucas 2015-06-25 07:29:01 -05:00
parent 1cd9eeb556
commit 7f63449fde

View File

@ -941,7 +941,7 @@ function lookupAndConnect(self, options) {
dnsopts.hints = dns.ADDRCONFIG | dns.V4MAPPED;
debug('connect: find host ' + host);
debug('connect: dns options ' + dnsopts);
debug('connect: dns options', dnsopts);
self._host = host;
var lookup = options.lookup || dns.lookup;
lookup(host, dnsopts, function(err, ip, addressType) {