Skip to content

Commit df1994f

Browse files
cjihrigrvagg
authored andcommitted
Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD"
This reverts commit 04bea9f. PR-URL: #1555 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent d12df7f commit df1994f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/dns.js

-5
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ exports.lookup = function lookup(hostname, options, callback) {
127127
hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) {
128128
throw new TypeError('invalid argument: hints must use valid flags');
129129
}
130-
131-
// FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because
132-
// the libc does not support it
133-
if (process.platform === 'freebsd' && family !== 6)
134-
hints &= ~exports.V4MAPPED;
135130
} else {
136131
family = options >>> 0;
137132
}

0 commit comments

Comments
 (0)