diff options
Diffstat (limited to 'bridge/xmpp/xmpp.go')
-rw-r--r-- | bridge/xmpp/xmpp.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index e41baf86..0305975d 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -4,6 +4,7 @@ import ( "github.com/42wim/matterbridge/bridge/config" log "github.com/Sirupsen/logrus" "github.com/mattn/go-xmpp" + "crypto/tls" "strings" "time" @@ -58,12 +59,16 @@ func (b *Bxmpp) Send(msg config.Message) error { } func (b *Bxmpp) createXMPP() (*xmpp.Client, error) { + tc := new(tls.Config) + tc.InsecureSkipVerify = b.Config.SkipTLSVerify options := xmpp.Options{ Host: b.Config.Server, User: b.Config.Jid, Password: b.Config.Password, NoTLS: true, StartTLS: true, + TLSConfig: tc, + //StartTLS: false, Debug: true, Session: true, |