diff options
author | Evan Lucas <evanlucas@me.com> | 2015-06-25 07:29:01 -0500 |
---|---|---|
committer | Evan Lucas <evanlucas@me.com> | 2015-06-26 07:42:43 -0500 |
commit | 7f63449fde070455b337cd4b8e094d5366eb2dd8 (patch) | |
tree | 00c424ba68777746c8339202bd1c8e74a7512d15 | |
parent | 1cd9eeb55696625ee8413f9e169c73e9eb21ce76 (diff) | |
download | nodejs-7f63449fde070455b337cd4b8e094d5366eb2dd8.tar.gz nodejs-7f63449fde070455b337cd4b8e094d5366eb2dd8.tar.bz2 nodejs-7f63449fde070455b337cd4b8e094d5366eb2dd8.zip |
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>
-rw-r--r-- | lib/net.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js index d4a40fe07..4c5e62b58 100644 --- a/lib/net.js +++ b/lib/net.js @@ -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) { |