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:
authorGary Kim <gary@garykim.dev>2021-07-14 07:22:20 +0300
committerGary Kim <gary@garykim.dev>2021-07-14 07:22:20 +0300
commit968e7ccbfc3beae287247042375ca297a39e0a16 (patch)
tree055e3d4ad2e224b7e264b1d1a31e895659fc09f0 /lib
parent6650c45210a75668d9de58d3ef4b72cd8ef9ba51 (diff)
Add skip TLS option for XMPP and Rocketchat
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'lib')
-rw-r--r--lib/MatterbridgeManager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php
index a10f3ba9a..2c48b5aaf 100644
--- a/lib/MatterbridgeManager.php
+++ b/lib/MatterbridgeManager.php
@@ -432,6 +432,9 @@ class MatterbridgeManager {
$content .= sprintf(' Server = "%s"', $part['server']) . "\n";
$content .= sprintf(' Login = "%s"', $part['login']) . "\n";
$content .= sprintf(' Password = "%s"', $part['password']) . "\n";
+ if ($part['skiptls']) {
+ $content .= sprintf(' SkipTLSVerify = true') . "\n";
+ }
$content .= ' PrefixMessagesWithNick = true' . "\n";
$content .= ' RemoteNickFormat = "[{PROTOCOL}] <{NICK}> "' . "\n\n";
} elseif ($type === 'slack') {
@@ -504,6 +507,9 @@ class MatterbridgeManager {
$content .= sprintf(' Password = "%s"', $part['password']) . "\n";
$content .= sprintf(' Muc = "%s"', $part['muc']) . "\n";
$content .= sprintf(' Nick = "%s"', $part['nick']) . "\n";
+ if ($part['skiptls']) {
+ $content .= sprintf(' SkipTLSVerify = true') . "\n";
+ }
$content .= ' PrefixMessagesWithNick = true' . "\n";
$content .= ' RemoteNickFormat = "[{PROTOCOL}] <{NICK}> "' . "\n\n";
}