diff options
Diffstat (limited to 'lib/dns.js')
-rw-r--r-- | lib/dns.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/dns.js b/lib/dns.js index 581310b132..4a2672c254 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -24,7 +24,7 @@ const util = require('util'); const cares = process.binding('cares_wrap'); -const internalNet = require('internal/net'); +const { isLegalPort } = require('internal/net'); const { customPromisifyArgs } = require('internal/util'); const errors = require('internal/errors'); const { @@ -41,9 +41,6 @@ const { isIP } = cares; -const isLegalPort = internalNet.isLegalPort; - - function errnoException(err, syscall, hostname) { // FIXME(bnoordhuis) Remove this backwards compatibility nonsense and pass // the true error to the user. ENOTFOUND is not even a proper POSIX error! |