diff options
author | Steve Huston <shuston@riverace.com> | 2016-03-22 19:40:15 -0400 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2016-03-22 19:40:15 -0400 |
commit | 7e8599505e3157894e371656ce234e9c8c28c4bb (patch) | |
tree | 45245b15edc67034c09aedf53b607ade132276f2 /ACE/ace | |
parent | 627410ae7db70a7e34b895aa12887ac8673726dd (diff) | |
download | ATCD-7e8599505e3157894e371656ce234e9c8c28c4bb.tar.gz |
Remove AI_ADDRCONFIG use from ACE_INET_Addr::set; see Bugzilla 4211
Diffstat (limited to 'ACE/ace')
-rw-r--r-- | ACE/ace/INET_Addr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ACE/ace/INET_Addr.cpp b/ACE/ace/INET_Addr.cpp index 4c68959656b..cf25f94196e 100644 --- a/ACE/ace/INET_Addr.cpp +++ b/ACE/ace/INET_Addr.cpp @@ -407,7 +407,10 @@ ACE_INET_Addr::set (u_short port_number, addrinfo hints; ACE_OS::memset (&hints, 0, sizeof hints); hints.ai_family = address_family; - hints.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED; + // The ai_flags used to contain AI_ADDRCONFIG as well but that prevented + // lookups from completing if there is no, or only a loopback, IPv6 + // interface configured. See Bugzilla 4211 for more info. + hints.ai_flags = AI_V4MAPPED; // Note - specify the socktype here to avoid getting multiple entries // returned with the same address for different socket types or // protocols. If this causes a problem for some reason (an address that's |