Index: webrtc/base/nethelpers.cc |
diff --git a/webrtc/base/nethelpers.cc b/webrtc/base/nethelpers.cc |
index fddfdaf58b5832318fe4f73d4f2ad7262f5b03bf..aeb467c9ca100bcabaa36d532b5e939f5797a79f 100644 |
--- a/webrtc/base/nethelpers.cc |
+++ b/webrtc/base/nethelpers.cc |
@@ -44,8 +44,7 @@ int ResolveHostname(const std::string& hostname, int family, |
addresses->clear(); |
struct addrinfo* result = NULL; |
struct addrinfo hints = {0}; |
- // TODO(djw): For now this is IPv4 only so existing users remain unaffected. |
- hints.ai_family = AF_INET; |
+ hints.ai_family = family; |
honghaiz3
2016/06/24 01:19:08
This will be essentially using AF_UNSPEC because t
pthatcher1
2016/06/24 18:36:05
I think we should have a really big comment right
honghaiz3
2016/06/24 21:26:39
Done. Thanks!
|
hints.ai_flags = AI_ADDRCONFIG; |
int ret = getaddrinfo(hostname.c_str(), NULL, &hints, &result); |
if (ret != 0) { |