summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-17 23:10:32 +0200
committerWim <wim@42.be>2017-07-17 23:10:32 +0200
commit0302e4da82cfdd4b84713462eaee2637ab3ebdc9 (patch)
tree24523725fe776ce8aeced25eda1a713847995524 /bridge
parentdc8743e0c0f40d6f260c346025af29523087a9b5 (diff)
downloadmatterbridge-msglm-0302e4da82cfdd4b84713462eaee2637ab3ebdc9.tar.gz
matterbridge-msglm-0302e4da82cfdd4b84713462eaee2637ab3ebdc9.tar.bz2
matterbridge-msglm-0302e4da82cfdd4b84713462eaee2637ab3ebdc9.zip
Fix webhookurl/webhookbindaddress panic (mattermost). Closes #221
Diffstat (limited to 'bridge')
-rw-r--r--bridge/mattermost/mattermost.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 0592e9b9..99e8d60c 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -57,6 +57,9 @@ 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()