summaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
authorHUANG Wei <grubbyfans@gmail.com>2016-03-08 15:39:16 +0800
committerEvan Lucas <evanlucas@me.com>2016-03-18 11:04:02 -0500
commit545b8fd8d8276a8bd5415384d9cb4f4a3182be6e (patch)
tree7705dbb61e8de63272c599755bfa147f8f7c4641 /lib/net.js
parent08085c49b6e49ecfffd638c6cd46f4de639ae4f4 (diff)
downloadandroid-node-v8-545b8fd8d8276a8bd5415384d9cb4f4a3182be6e.tar.gz
android-node-v8-545b8fd8d8276a8bd5415384d9cb4f4a3182be6e.tar.bz2
android-node-v8-545b8fd8d8276a8bd5415384d9cb4f4a3182be6e.zip
net: emit host in lookup event
Previously, we emitted ip and addressType. This change includes the host as the last argument to the lookup event. PR-URL: https://github.com/nodejs/node/pull/5598 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js
index b3af78e447..00f7ed735a 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -969,7 +969,7 @@ function lookupAndConnect(self, options) {
self._host = host;
var lookup = options.lookup || dns.lookup;
lookup(host, dnsopts, function(err, ip, addressType) {
- self.emit('lookup', err, ip, addressType);
+ self.emit('lookup', err, ip, addressType, host);
// It's possible we were destroyed while looking this up.
// XXX it would be great if we could cancel the promise returned by