summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-10-19 18:29:59 +0200
committerMichael Vogt <mvo@debian.org>2013-10-22 07:32:57 +0200
commitc08cf1dc784a98a253296a51433f6de7d16d3125 (patch)
tree4bba0e531dd29444e18c669b50ecdf8ece89cba4 /methods
parentfa300ed15fc5a1d9e146c85d45f0a88b1d7f96bf (diff)
add Acquire::http::Proxy-Auto-Detect to the apt.conf.5 manpage (closes: 726597)
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 71a02e53a..b22b61efc 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -798,7 +798,6 @@ bool HttpMethod::Configuration(string Message)
PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",
PipelineDepth);
Debug = _config->FindB("Debug::Acquire::http",false);
- AutoDetectProxyCmd = _config->Find("Acquire::http::ProxyAutoDetect");
// Get the proxy to use
AutoDetectProxy();
@@ -811,6 +810,11 @@ bool HttpMethod::Configuration(string Message)
/* */
bool HttpMethod::AutoDetectProxy()
{
+ // option is "Acquire::http::Proxy-Auto-Detect" but we allow the old
+ // name without the dash ("-")
+ AutoDetectProxyCmd = _config->Find("Acquire::http::Proxy-Auto-Detect",
+ _config->Find("Acquire::http::ProxyAutoDetect"));
+
if (AutoDetectProxyCmd.empty())
return true;