Index: net/proxy/proxy_config_service_android.cc |
diff --git a/net/proxy/proxy_config_service_android.cc b/net/proxy/proxy_config_service_android.cc |
index 50407fe21b7b44dd923730b2f948ab1e0b84efc8..80e3b929b454261cb0b6ab10e2e6b900f29be83f 100644 |
--- a/net/proxy/proxy_config_service_android.cc |
+++ b/net/proxy/proxy_config_service_android.cc |
@@ -98,6 +98,12 @@ void AddBypassRules(const std::string& scheme, |
// by | and that use * as a wildcard. For example, setting the |
// http.nonProxyHosts property to *.android.com|*.kernel.org will cause |
// requests to http://developer.android.com to be made without a proxy. |
+ |
+ // Force localhost to be on the proxy exclusion list; |
+ // otherwise all localhost traffic is routed through |
+ // the proxy which is not desired. |
+ bypass_rules->AddRuleToBypassLocal(); |
+ |
std::string non_proxy_hosts = |
get_property.Run(scheme + ".nonProxyHosts"); |
if (non_proxy_hosts.empty()) |