Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit a0a7b3657ced6ae46daf29db881d7a3432134bbd Author: Josip Janžić <josip.janzic@gmail.com> Date: Wed Jan 18 21:01:42 2017 +0000 Fix tls by setting ServerName (xmpp) (#114) Fixes error message shown by tls: "either ServerName or InsecureSkipVerify must be specified in the tls.Config" diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 0305975..8899e71 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -616 +617 @@ func (b *Bxmpp) Send(msg config.Message) error {  func (b *Bxmpp) createXMPP() (*xmpp.Client, error) {   tc := new(tls.Config)   tc.InsecureSkipVerify = b.Config.SkipTLSVerify + tc.ServerName = strings.Split(b.Config.Server, ":")[0]   options := xmpp.Options{   Host: b.Config.Server,   User: b.Config.Jid,