mirror of https://github.com/nodejs/node.git
Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD"
This reverts commit 04bea9f9c2
.
PR-URL: https://github.com/iojs/io.js/pull/1555
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
pull/2221/merge
parent
d12df7f159
commit
df1994fe53
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue