diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/xmpp/xmpp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 8257b7de..2376d60c 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -100,7 +100,7 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) { func (b *Bxmpp) createXMPP() error { tc := &tls.Config{ - ServerName: strings.Split(b.GetString("Server"), ":")[0], + ServerName: strings.Split(b.GetString("Jid"), "@")[1], InsecureSkipVerify: b.GetBool("SkipTLSVerify"), // nolint: gosec } options := xmpp.Options{ |