Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
dns: proper comment
  • Loading branch information
indutny committed Jan 13, 2015
commit 0ac4ee31c8ac26304c7416edbcf9d2ac2db4860c
4 changes: 3 additions & 1 deletion lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ exports.lookup = function lookup(hostname, options, callback) {
throw new TypeError('invalid argument: hints must use valid flags');
}

if (process.platform === 'freebsd' || family !== 6)
// FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because
// the kernel does not support it
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Close enough, I guess. (It's libc, not the kernel. Details...)

if (process.platform === 'freebsd' && family !== 6)
hints &= ~exports.V4MAPPED;
} else {
family = options >>> 0;
Expand Down