Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

dns: remove AI_V4MAPPED hint flag on FreeBSD #9212

Closed
wants to merge 1 commit into from
Closed

dns: remove AI_V4MAPPED hint flag on FreeBSD #9212

wants to merge 1 commit into from

Conversation

cjihrig
Copy link

@cjihrig cjihrig commented Feb 13, 2015

Port of nodejs/node@04bea9f
Closes #9204

FreeBSD does not support V4MAPPED.

PR-URL: nodejs/node#332
Reviewed-By: Ben Noordhuis <[email protected]>

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

Choose a reason for hiding this comment

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

since the flag is simply invalid, why adding && family !== 6 ?

Another (more elaborate) question is whether mapped/not-mapped IPv4 addresses should just have been abstracted from the clients.

@misterdjules
Copy link

@cjihrig I would close this in favor of #18204. See #8540 (comment) for the rationale behind my suggestion.

Please let me know what you think!

@cjihrig
Copy link
Author

cjihrig commented Apr 21, 2015

I like #18204 better. @indutny would io.js be open to using #18204 instead of the patch ported in this PR?

@indutny
Copy link
Member

indutny commented Apr 21, 2015

@cjihrig me too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants