Skip to content

Commit

Permalink
net: fix debug for dnsopts
Browse files Browse the repository at this point in the history
Prevent debug call from showing [object Object] for dnsopts in
lookupAndConnect

PR-URL: #2059
Reviewed-by: Colin Ihrig <[email protected]>
  • Loading branch information
evanlucas committed Jun 26, 2015
1 parent 1cd9eeb commit 7f63449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f63449

Please sign in to comment.