Browse Source

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>
v4.0.0-rc
Evan Lucas 10 years ago
parent
commit
7f63449fde
  1. 2
      lib/net.js

2
lib/net.js

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

Loading…
Cancel
Save