Skip to content

Commit

Permalink
Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD"
Browse files Browse the repository at this point in the history
This reverts commit 04bea9f.

PR-URL: #1555
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
cjihrig authored and rvagg committed May 27, 2015
1 parent 137f38d commit eea96ee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ exports.lookup = function lookup(hostname, options, callback) {
hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) {
throw new TypeError('invalid argument: hints must use valid flags');
}

// FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because
// the libc does not support it
if (process.platform === 'freebsd' && family !== 6)
hints &= ~exports.V4MAPPED;
} else {
family = options >>> 0;
}
Expand Down

0 comments on commit eea96ee

Please sign in to comment.