mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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>
This commit is contained in:
1 parent
6950d62adc
commit
0925aba1c9
1 file changed
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user