net: cleanup connect logic
authorEvan Lucas <evanlucas@me.com>
Wed, 22 Apr 2015 21:46:21 +0000 (16:46 -0500)
committerEvan Lucas <evanlucas@me.com>
Fri, 24 Apr 2015 12:51:24 +0000 (07:51 -0500)
commit1bef71747678c19c7214048de5b9e3848889248d
treef5d94bd1fd01b0f012a30e6037c7d58b811970e3
parent3d3083b91f02ca14acddde97612cec98e97ffe38
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>
lib/net.js
test/parallel/test-net-dns-lookup-skip.js [new file with mode: 0644]
test/parallel/test-net-dns-lookup.js