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

Unified Diff: net/base/host_resolver_impl.cc

Issue 564052: Turn off ipv6 when there is no support at startup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | net/base/host_resolver_proc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl.cc
===================================================================
--- net/base/host_resolver_impl.cc (revision 38072)
+++ net/base/host_resolver_impl.cc (working copy)
@@ -53,6 +53,8 @@
HostResolverImpl* resolver = new HostResolverImpl(
NULL, CreateDefaultCache(), network_change_notifier, kMaxJobs);
+ if (!HostResolverProc::IPv6Supported())
+ resolver->SetDefaultAddressFamily(net::ADDRESS_FAMILY_IPV4);
return resolver;
}
« no previous file with comments | « no previous file | net/base/host_resolver_proc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698