diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-05-25 13:42:15 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-05-26 10:00:32 +0300 |
commit | c691fd4a9dc5ca412ec13104b60d8334cdbe5963 (patch) | |
tree | 515e44e2036557118a2ba45e805d8f536479ff03 /lib | |
parent | 202ea76c71bb158714b0a1eeb1703e499fba3d21 (diff) |
Allow connecting to local addresses
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/CapabilitiesService.php | 2 | ||||
-rw-r--r-- | lib/WOPI/DiscoveryManager.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/CapabilitiesService.php b/lib/Service/CapabilitiesService.php index 10493666..ed0998b3 100644 --- a/lib/Service/CapabilitiesService.php +++ b/lib/Service/CapabilitiesService.php @@ -112,7 +112,7 @@ class CapabilitiesService { $capabilitiesEndpoint = $remoteHost . '/hosting/capabilities'; $client = $this->clientService->newClient(); - $options = ['timeout' => 10]; + $options = ['timeout' => 10, 'nextcloud' => ['allow_local_address' => true]]; $options['verify'] = $this->config->getAppValue('richdocuments', 'disable_certificate_verification', '') === ''; diff --git a/lib/WOPI/DiscoveryManager.php b/lib/WOPI/DiscoveryManager.php index 814d3917..18af8608 100644 --- a/lib/WOPI/DiscoveryManager.php +++ b/lib/WOPI/DiscoveryManager.php @@ -96,7 +96,7 @@ class DiscoveryManager { $wopiDiscovery = $remoteHost . '/hosting/discovery'; $client = $this->clientService->newClient(); - $options = ['timeout' => 5]; + $options = ['timeout' => 5, 'nextcloud' => ['allow_local_address' => true]]; $options['verify'] = $this->config->getAppValue('richdocuments', 'disable_certificate_verification', '') === ''; |