Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-29 11:27:42 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-29 11:27:42 +0300
commita7cf861387a8c12e0994cb7268434f313b40b02f (patch)
tree5101e4c104d937260adbbf6b76a3425826670dad /lib
parent51dc317f43af93215ba8a626bf5fc3be4f9ce1d7 (diff)
Always allow local HPBs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/SignalingController.php3
-rw-r--r--lib/Signaling/BackendNotifier.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/Controller/SignalingController.php b/lib/Controller/SignalingController.php
index 6c3dc06cd..fe91da0a2 100644
--- a/lib/Controller/SignalingController.php
+++ b/lib/Controller/SignalingController.php
@@ -183,6 +183,9 @@ class SignalingController extends OCSController {
try {
$response = $client->get($url . '/api/v1/welcome', [
'verify' => (bool) $signalingServers[$serverId]['verify'],
+ 'nextcloud' => [
+ 'allow_local_address' => true,
+ ],
]);
$body = $response->getBody();
diff --git a/lib/Signaling/BackendNotifier.php b/lib/Signaling/BackendNotifier.php
index 718521821..0eee7badd 100644
--- a/lib/Signaling/BackendNotifier.php
+++ b/lib/Signaling/BackendNotifier.php
@@ -117,6 +117,9 @@ class BackendNotifier {
$params = [
'headers' => $headers,
'body' => $body,
+ 'nextcloud' => [
+ 'allow_local_address' => true,
+ ],
];
if (empty($signaling['verify'])) {
$params['verify'] = false;