net: move isLegalPort to internal/net
authorEvan Lucas <evanlucas@me.com>
Tue, 26 Jan 2016 14:12:41 +0000 (08:12 -0600)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit6062b1c342410dbd96d08e18f3c4a1ee81cceb60
tree788b839f794baf0e376df584390e786d04fdef2d
parentb4e783357c8bfb2f9f6df7fef21a5686c80b087f
net: move isLegalPort to internal/net

isLegalPort can be used in more places than just net.js. This change
moves it to a new internal net module in preparation for using it in
the dns module.

PR-URL: https://github.com/nodejs/node/pull/4882
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
lib/internal/net.js [new file with mode: 0644]
lib/net.js
node.gyp
test/parallel/test-net-internal.js [new file with mode: 0644]