Skip to content

Commit 7f63449

Browse files
committed
net: fix debug for dnsopts
Prevent debug call from showing [object Object] for dnsopts in lookupAndConnect PR-URL: nodejs#2059 Reviewed-by: Colin Ihrig <[email protected]>
1 parent 1cd9eeb commit 7f63449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ function lookupAndConnect(self, options) {
941941
dnsopts.hints = dns.ADDRCONFIG | dns.V4MAPPED;
942942

943943
debug('connect: find host ' + host);
944-
debug('connect: dns options ' + dnsopts);
944+
debug('connect: dns options', dnsopts);
945945
self._host = host;
946946
var lookup = options.lookup || dns.lookup;
947947
lookup(host, dnsopts, function(err, ip, addressType) {

0 commit comments

Comments
 (0)