mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-23 00:01:37 +00:00
Fix webhookurl/webhookbindaddress panic (mattermost). Closes #221
This commit is contained in:
parent
dc8743e0c0
commit
0302e4da82
@ -57,6 +57,9 @@ func (b *Bmattermost) Connect() error {
|
|||||||
if b.Config.WebhookBindAddress != "" {
|
if b.Config.WebhookBindAddress != "" {
|
||||||
if b.Config.WebhookURL != "" {
|
if b.Config.WebhookURL != "" {
|
||||||
flog.Info("Connecting using webhookurl (sending) and webhookbindaddress (receiving)")
|
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 != "" {
|
} else if b.Config.Login != "" {
|
||||||
flog.Info("Connecting using login/password (sending)")
|
flog.Info("Connecting using login/password (sending)")
|
||||||
err := b.apiLogin()
|
err := b.apiLogin()
|
||||||
|
Loading…
Reference in New Issue
Block a user