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 Jul 22, 2015
1 parent 42ed1e9 commit 0b122d0
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 0b122d0

Please sign in to comment.