Skip to content

Commit 9192840

Browse files
committed
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 a5fdfd8 commit 9192840

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
@@ -128,11 +128,6 @@ exports.lookup = function lookup(hostname, options, callback) {
128128
hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) {
129129
throw new TypeError('invalid argument: hints must use valid flags');
130130
}
131-
132-
// FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because
133-
// the libc does not support it
134-
if (process.platform === 'freebsd' && family !== 6)
135-
hints &= ~exports.V4MAPPED;
136131
} else {
137132
family = options >>> 0;
138133
}

0 commit comments

Comments
 (0)