diff options
author | Raimo Niskanen <[email protected]> | 2010-12-02 16:49:19 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-12-02 16:49:19 +0100 |
commit | 0d79832e450c49e51f5fd7149f5f72930ef1f966 (patch) | |
tree | e6dccd01323eee60fed8551cc15730c8b3405919 /erts/etc/common | |
parent | 2a01369408762b651785083aad8d3778bfe30e71 (diff) | |
download | otp-0d79832e450c49e51f5fd7149f5f72930ef1f966.tar.gz otp-0d79832e450c49e51f5fd7149f5f72930ef1f966.tar.bz2 otp-0d79832e450c49e51f5fd7149f5f72930ef1f966.zip |
Stop using uncertain flags for getaddrinfo()
The AI_V4MAPPED flag is falling out of grace in modern
IPv6 stacks, for security reasons, e.g. FreeBSD do not
document it any longer. The AI_ADDRCONFIG flag have
got unclear semantics on the same OS.
Diffstat (limited to 'erts/etc/common')
-rw-r--r-- | erts/etc/common/inet_gethost.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/erts/etc/common/inet_gethost.c b/erts/etc/common/inet_gethost.c index ab24ac1048..8bd9368aa1 100644 --- a/erts/etc/common/inet_gethost.c +++ b/erts/etc/common/inet_gethost.c @@ -1760,11 +1760,7 @@ static int worker_loop(void) struct addrinfo hints; memset(&hints, 0, sizeof(hints)); -#ifdef __WIN32__ - hints.ai_flags = (AI_CANONNAME); -#else - hints.ai_flags = (AI_CANONNAME|AI_V4MAPPED|AI_ADDRCONFIG); -#endif + hints.ai_flags = AI_CANONNAME; hints.ai_socktype = SOCK_STREAM; hints.ai_family = AF_INET6; DEBUGF(5, ("Starting getaddrinfo(%s, ...)", data)); |