diff options
author | Wim <wim@42.be> | 2018-03-05 22:23:01 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-03-05 22:23:01 +0100 |
commit | fdd5ada98c3829af78d662da90d12d574565ac7a (patch) | |
tree | fcc74b68d596e4228659f57e9df11abf519bd225 /gateway | |
parent | 80fcf18e24256558d6a322042f0364d726108c87 (diff) | |
download | matterbridge-msglm-fdd5ada98c3829af78d662da90d12d574565ac7a.tar.gz matterbridge-msglm-fdd5ada98c3829af78d662da90d12d574565ac7a.tar.bz2 matterbridge-msglm-fdd5ada98c3829af78d662da90d12d574565ac7a.zip |
Fix panic on empty config. Closes #386
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/gateway.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 694fa95b..c8b1d689 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -81,6 +81,7 @@ func (gw *Gateway) AddBridge(cfg *config.Bridge) error { if br == nil { br = bridge.New(cfg) br.Config = gw.Router.Config + br.General = &gw.General // set logging br.Log = log.WithFields(log.Fields{"prefix": "bridge"}) brconfig := &bridge.Config{Remote: gw.Message, Log: log.WithFields(log.Fields{"prefix": br.Protocol}), Bridge: br} |