-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: legacy-1.0.5
-
Component/s: API
A constructor of SockAddr gives hints to the getaddrinfo(). It sets a value of ai_family depending on whether the IPv6 enabled or not. In fact, ipv6 flag (see src/mongo/util/net/sock.cpp) is initialized to false and never being changed.