Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: webrtc/base/nethelpers.cc

Issue 2083013008: Return both IPv6 and IPv4 address from the lookup. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698