Add proxy support to external storage
Otherwise debugging issues is a PITA
This commit is contained in:
parent
faf65e73b7
commit
bf4a038535
1 changed files with 5 additions and 1 deletions
|
@ -136,9 +136,13 @@ class DAV extends Common {
|
|||
'password' => $this->password,
|
||||
);
|
||||
|
||||
$proxy = \OC::$server->getConfig()->getSystemValue('proxy', '');
|
||||
if($proxy !== '') {
|
||||
$settings['proxy'] = $proxy;
|
||||
}
|
||||
|
||||
$this->client = new Client($settings);
|
||||
$this->client->setThrowExceptions(true);
|
||||
|
||||
if ($this->secure === true && $this->certPath) {
|
||||
$this->client->addCurlSetting(CURLOPT_CAINFO, $this->certPath);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue