From 2110db6f0ca65b5f0cfb4c520110e8d667fb105e Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 27 Feb 2018 21:58:44 +0100 Subject: Add environment override back --- gateway/gateway.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gateway') diff --git a/gateway/gateway.go b/gateway/gateway.go index 581b638b..5b14d164 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -81,6 +81,8 @@ func (gw *Gateway) AddBridge(cfg *config.Bridge) error { br := gw.Router.getBridge(cfg.Account) if br == nil { br = bridge.New(cfg) + // override config from environment + config.OverrideCfgFromEnv(gw.Config, br.Protocol, br.Name) // set logging br.Log = log.WithFields(log.Fields{"prefix": "bridge"}) // get the protocol configuration (eg irc) -- cgit v1.2.3