• Martin Hurton's avatar
    Don't set the AI_V4MAPPED flag on FreeBSD · c2e9997a
    Martin Hurton authored
    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.
    c2e9997a
tcp_address.cpp 12.6 KB