Don't set the AI_V4MAPPED flag on FreeBSD
The problem is that even though the AI_V4MAPPED flag is defined on FreeBSD, the getaddrinfo function does not support it and returns EAI_BADFLAGS. The patch also sets the flag on Windows if it is defined there. This is true for Windows Vista and later. Fixes issue #331.
Showing
Please
register
or
sign in
to comment