summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErwin Kandler <e.kandler@gmail.com>2016-06-30 10:48:48 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-07-28 14:28:01 +0000
commitfa138d4a76e9e820f01a75771c30dbced8c4e6f3 (patch)
tree660f30537ea380b4e0ebd072d500bff2608e7b75 /src
parentb6a0cd76dbb29e288bb041aca3125801126f8810 (diff)
Do not use proxy when connecting to localhost
Chromium does not exclude localhost connection from its proxy rules by default. When using a qt proxy with any other form of qt-based connections, connections to localhost are excluded by default. This patch adds localhost connections to the proxy-bypass rules. Change-Id: I76c43a2ae0de8d8fad455445a64a739c6c6b40f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/core/proxy_config_service_qt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/proxy_config_service_qt.cpp b/src/core/proxy_config_service_qt.cpp
index fc0959eef..d966e275d 100644
--- a/src/core/proxy_config_service_qt.cpp
+++ b/src/core/proxy_config_service_qt.cpp
@@ -131,6 +131,7 @@ net::ProxyConfigService::ConfigAvailability ProxyConfigServiceQt::GetLatestProxy
qtRules.type = net::ProxyConfig::ProxyRules::TYPE_NO_RULES;
}
+ qtRules.bypass_rules.AddRuleToBypassLocal(); // don't use proxy for connections to localhost
m_qtProxyConfig.proxy_rules() = qtRules;
*config = m_qtProxyConfig;
return CONFIG_VALID;