diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index df87b1b98f5e0..ecae2b4a3f569 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -157,6 +157,11 @@ protected function init(): void { $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);