Add proxy support to external storage

Otherwise debugging issues is a PITA
This commit is contained in:
Lukas Reschke 2016-02-24 19:48:47 +01:00
parent faf65e73b7
commit bf4a038535
1 changed files with 5 additions and 1 deletions

View File

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