Thumbnail

rani/matterbridge.git

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

commit 140cfef6c9b227801545e48863140f194528c4d9 Author: Wim <wim@42.be> Date: Mon Jul 17 23:10:32 2017 +0000 Fix webhookurl/webhookbindaddress panic (mattermost). Closes #221 diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 0592e9b..99e8d60 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -576 +579 @@ func (b *Bmattermost) Connect() error {   if b.Config.WebhookBindAddress != "" {   if b.Config.WebhookURL != "" {   flog.Info("Connecting using webhookurl (sending) and webhookbindaddress (receiving)") + b.mh = matterhook.New(b.Config.WebhookURL, + matterhook.Config{InsecureSkipVerify: b.Config.SkipTLSVerify, + BindAddress: b.Config.WebhookBindAddress})   } else if b.Config.Login != "" {   flog.Info("Connecting using login/password (sending)")   err := b.apiLogin()