summaryrefslogtreecommitdiffstats
path: root/bridge/xmpp/xmpp.go
diff options
context:
space:
mode:
authorGeorge <57254463+zhoreeq@users.noreply.github.com>2020-11-13 17:59:05 -0500
committerGitHub <noreply@github.com>2020-11-13 23:59:05 +0100
commit765e00c949344b958d4681c91db8502d150f0353 (patch)
treecccc15af9d6a3190d611c3d913c494a3835f0632 /bridge/xmpp/xmpp.go
parent662359908b84d3a38010773ac70ca05478508fd5 (diff)
downloadmatterbridge-msglm-765e00c949344b958d4681c91db8502d150f0353.tar.gz
matterbridge-msglm-765e00c949344b958d4681c91db8502d150f0353.tar.bz2
matterbridge-msglm-765e00c949344b958d4681c91db8502d150f0353.zip
Add NoTLS option to allow plaintext XMPP connections (#1288)
Co-authored-by: George <zhoreeq@users.noreply.github.com>
Diffstat (limited to 'bridge/xmpp/xmpp.go')
-rw-r--r--bridge/xmpp/xmpp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index ed99aac2..45c5beb0 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -138,14 +138,14 @@ func (b *Bxmpp) createXMPP() error {
User: b.GetString("Jid"),
Password: b.GetString("Password"),
NoTLS: true,
- StartTLS: true,
+ StartTLS: !b.GetBool("NoTLS"),
TLSConfig: tc,
Debug: b.GetBool("debug"),
Session: true,
Status: "",
StatusMessage: "",
Resource: "",
- InsecureAllowUnencryptedAuth: false,
+ InsecureAllowUnencryptedAuth: b.GetBool("NoTLS"),
}
var err error
b.xc, err = options.NewClient()