commit b1ce0faead16f21206bed15594043c0331c53fc5
Author: Wim <wim@42.be>
Date: Sat Sep 07 21:36:25 2019 +0000
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index e950bcd..8f993a8 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -1076 +1079 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) {
}
func (b *Bxmpp) createXMPP() error {
+ if !strings.Contains(b.GetString("Jid"), "@") {
+ return fmt.Errorf("the Jid %s doesn't contain an @", b.GetString("Jid"))
+ }
tc := &tls.Config{
ServerName: strings.Split(b.GetString("Jid"), "@")[1],
InsecureSkipVerify: b.GetBool("SkipTLSVerify"), // nolint: gosec