diff options
author | Julian Andres Klode <jak@debian.org> | 2017-10-21 15:44:43 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-10-22 18:52:16 +0200 |
commit | 1a76517470ebc2dd3f96e39ebe6f3706d6dd78da (patch) | |
tree | 93b8d79678ba890d53d108c26118ed0807264367 /methods/http.cc | |
parent | 404dececf913d3c09368a73ca00aa8172dbf6865 (diff) |
Run Proxy-Auto-Detect script from main process
This avoids running the Proxy-Auto-Detect script inside the
untrusted (well, less trusted for now) sandbox. This will allow
us to restrict the http method from fork()ing or exec()ing via
seccomp.
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index fc22180d3..cbc77f477 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -427,7 +427,9 @@ bool HttpServerState::Open() Persistent = true; // Determine the proxy setting - AutoDetectProxy(ServerName); + // Used to run AutoDetectProxy(ServerName) here, but we now send a Proxy + // header in the URI Acquire request and set "Acquire::"+uri.Access+"::proxy::"+uri.Host + // to it in BaseHttpMethod::Loop() string SpecificProxy = Owner->ConfigFind("Proxy::" + ServerName.Host, ""); if (!SpecificProxy.empty()) { |