forked from lug/matterbridge
		
	| @@ -107,6 +107,9 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) { | |||||||
| } | } | ||||||
|  |  | ||||||
| func (b *Bxmpp) createXMPP() 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{ | 	tc := &tls.Config{ | ||||||
| 		ServerName:         strings.Split(b.GetString("Jid"), "@")[1], | 		ServerName:         strings.Split(b.GetString("Jid"), "@")[1], | ||||||
| 		InsecureSkipVerify: b.GetBool("SkipTLSVerify"), // nolint: gosec | 		InsecureSkipVerify: b.GetBool("SkipTLSVerify"), // nolint: gosec | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wim
					Wim