From fdd5ada98c3829af78d662da90d12d574565ac7a Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 5 Mar 2018 22:23:01 +0100 Subject: Fix panic on empty config. Closes #386 --- gateway/gateway.go | 1 + 1 file changed, 1 insertion(+) 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} -- cgit v1.2.3