Skip to content

Commit 42defb7

Browse files
Merge pull request #61967 from nextcloud/backport/60787/stable32
[stable32] fix(Storage): use `proxyexclude` parameter in DAV client
2 parents a144465 + dc6bac9 commit 42defb7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/private/Files/Storage/DAV.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ protected function init(): void {
157157
$this->client = new Client($settings);
158158
$this->client->setThrowExceptions(true);
159159

160+
$proxyExclude = Server::get(IConfig::class)->getSystemValue('proxyexclude', []);
161+
if ($proxyExclude !== []) {
162+
$this->client->addCurlSetting(CURLOPT_NOPROXY, implode(',', $proxyExclude));
163+
}
164+
160165
if ($this->secure === true) {
161166
if ($this->verify === false) {
162167
$this->client->addCurlSetting(CURLOPT_SSL_VERIFYPEER, false);

0 commit comments

Comments
 (0)