diff options
author | Michael Vogt <mvo@debian.org> | 2013-10-19 18:29:59 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-10-22 07:32:57 +0200 |
commit | c08cf1dc784a98a253296a51433f6de7d16d3125 (patch) | |
tree | 4bba0e531dd29444e18c669b50ecdf8ece89cba4 /methods | |
parent | fa300ed15fc5a1d9e146c85d45f0a88b1d7f96bf (diff) |
add Acquire::http::Proxy-Auto-Detect to the apt.conf.5 manpage (closes: 726597)
Diffstat (limited to 'methods')
-rw-r--r-- | methods/http.cc | 6 |
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; |