summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-03-05 22:23:01 +0100
committerWim <wim@42.be>2018-03-05 22:23:01 +0100
commitfdd5ada98c3829af78d662da90d12d574565ac7a (patch)
treefcc74b68d596e4228659f57e9df11abf519bd225
parent80fcf18e24256558d6a322042f0364d726108c87 (diff)
downloadmatterbridge-msglm-fdd5ada98c3829af78d662da90d12d574565ac7a.tar.gz
matterbridge-msglm-fdd5ada98c3829af78d662da90d12d574565ac7a.tar.bz2
matterbridge-msglm-fdd5ada98c3829af78d662da90d12d574565ac7a.zip
Fix panic on empty config. Closes #386
-rw-r--r--gateway/gateway.go1
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}