Skip to content

Commit c9dcc33

Browse files
fix(Storage): use proxyexclude parameter in DAV client
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent f67b908 commit c9dcc33

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
@@ -159,6 +159,11 @@ protected function init(): void {
159159
$this->client = new Client($settings);
160160
$this->client->setThrowExceptions(true);
161161

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

0 commit comments

Comments
 (0)