summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-02-24 19:48:47 +0100
committerLukas Reschke <lukas@owncloud.com>2016-02-24 19:48:47 +0100
commitbf4a0385351f4eb8757a31b4253803211d6cdec7 (patch)
treef1b67e6c9d0586064192da2a9c68ac030586795f
parentfaf65e73b778867d36f0e13dd1b0f1a4ef1f4723 (diff)
downloadnextcloud-server-bf4a0385351f4eb8757a31b4253803211d6cdec7.tar.gz
nextcloud-server-bf4a0385351f4eb8757a31b4253803211d6cdec7.zip
Add proxy support to external storage
Otherwise debugging issues is a PITA
-rw-r--r--lib/private/files/storage/dav.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php
index a6e77e1b232..5e00a03ebb8 100644
--- a/lib/private/files/storage/dav.php
+++ b/lib/private/files/storage/dav.php
@@ -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);
}