]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/proxy.cc
apt-key: change to / before find to satisfy its CWD needs
[apt.git] / apt-pkg / contrib / proxy.cc
index b58db8478ce64f806a93d50cd566f1408c6bb82e..0c753131da31cf934bc886e2c8cad0c3c205dd5b 100644 (file)
@@ -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",