mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #60940 from nextcloud/backport/60787/stable34
[stable34] fix(Storage): use `proxyexclude` parameter in DAV client
This commit is contained in:
commit
18399e21d9
1 changed files with 5 additions and 0 deletions
|
|
@ -159,6 +159,11 @@ class DAV extends Common {
|
|||
$this->client = new Client($settings);
|
||||
$this->client->setThrowExceptions(true);
|
||||
|
||||
$proxyExclude = Server::get(IConfig::class)->getSystemValue('proxyexclude', []);
|
||||
if ($proxyExclude !== []) {
|
||||
$this->client->addCurlSetting(CURLOPT_NOPROXY, implode(',', $proxyExclude));
|
||||
}
|
||||
|
||||
if ($this->secure === true) {
|
||||
if ($this->verify === false) {
|
||||
$this->client->addCurlSetting(CURLOPT_SSL_VERIFYPEER, false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue