diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-09-16 21:13:17 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-09-16 21:13:17 +0200 |
commit | 0e510b0f46350480852b22b966601aaae8cef52f (patch) | |
tree | 7ea57eaaff2a4c2301ebf8b37be8f5a45da957ad /apt-pkg/contrib/proxy.cc | |
parent | dbb3ee2c93ddd161904fd216f3d3e0e435434c6b (diff) | |
parent | 4502ab82b3cc75e2290cecdef1467da3e51d8647 (diff) |
prepare 1.0.8ubuntu3
Diffstat (limited to 'apt-pkg/contrib/proxy.cc')
-rw-r--r-- | apt-pkg/contrib/proxy.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/contrib/proxy.cc b/apt-pkg/contrib/proxy.cc index b58db8478..0c753131d 100644 --- a/apt-pkg/contrib/proxy.cc +++ b/apt-pkg/contrib/proxy.cc @@ -26,6 +26,10 @@ bool AutoDetectProxy(URI &URL) // we support both http/https debug options bool Debug = _config->FindB("Debug::Acquire::"+URL.Access,false); + // the user already explicitly set a proxy for this host + if(_config->Find("Acquire::"+URL.Access+"::proxy::"+URL.Host, "") != "") + return true; + // option is "Acquire::http::Proxy-Auto-Detect" but we allow the old // name without the dash ("-") std::string AutoDetectProxyCmd = _config->Find("Acquire::"+URL.Access+"::Proxy-Auto-Detect", |