diff options
author | Evan Lucas <evanlucas@me.com> | 2015-04-22 16:46:21 -0500 |
---|---|---|
committer | Evan Lucas <evanlucas@me.com> | 2015-04-24 07:51:24 -0500 |
commit | 1bef71747678c19c7214048de5b9e3848889248d (patch) | |
tree | f5d94bd1fd01b0f012a30e6037c7d58b811970e3 /test/parallel/test-net-dns-lookup.js | |
parent | 3d3083b91f02ca14acddde97612cec98e97ffe38 (diff) | |
download | android-node-v8-1bef71747678c19c7214048de5b9e3848889248d.tar.gz android-node-v8-1bef71747678c19c7214048de5b9e3848889248d.tar.bz2 android-node-v8-1bef71747678c19c7214048de5b9e3848889248d.zip |
net: cleanup connect logic
Separates out the lookup logic for net.Socket. In the event
the `host` property is an IP address, the lookup is skipped.
PR-URL: https://github.com/iojs/io.js/pull/1505
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
Diffstat (limited to 'test/parallel/test-net-dns-lookup.js')
-rw-r--r-- | test/parallel/test-net-dns-lookup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-dns-lookup.js b/test/parallel/test-net-dns-lookup.js index e7c058fe14..92ba794d74 100644 --- a/test/parallel/test-net-dns-lookup.js +++ b/test/parallel/test-net-dns-lookup.js @@ -9,7 +9,7 @@ var server = net.createServer(function(client) { }); server.listen(common.PORT, '127.0.0.1', function() { - net.connect(common.PORT, '127.0.0.1').on('lookup', function(err, ip, type) { + net.connect(common.PORT, 'localhost').on('lookup', function(err, ip, type) { assert.equal(err, null); assert.equal(ip, '127.0.0.1'); assert.equal(type, '4'); |