From c2707c2a600f90cdc47497be7bfb8302360ba0ed Mon Sep 17 00:00:00 2001 From: cjihrig Date: Tue, 28 Apr 2015 20:49:15 -0400 Subject: [PATCH] Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD" This reverts commit 04bea9f9c224d9f863f671a1ad52a3f392b292cb. PR-URL: https://github.com/iojs/io.js/pull/1555 Reviewed-By: Fedor Indutny Reviewed-By: Ben Noordhuis --- lib/dns.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/dns.js b/lib/dns.js index fd0b12b1de5e55..97f730c27b7ea0 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -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; }