Merge pull request #60940 from nextcloud/backport/60787/stable34

[stable34] fix(Storage): use `proxyexclude` parameter in DAV client
This commit is contained in:
Andy Scherzinger 2026-06-03 20:40:18 +02:00 committed by GitHub
commit 18399e21d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);