diff options
author | Wim <wim@42.be> | 2018-02-27 21:58:44 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-27 23:22:12 +0100 |
commit | 2110db6f0ca65b5f0cfb4c520110e8d667fb105e (patch) | |
tree | 3a07c65759da8285924bb8f53668be05c35e1ea2 /gateway | |
parent | 2bac8673829516d8314c459133e85a8c0cc1959c (diff) | |
download | matterbridge-msglm-2110db6f0ca65b5f0cfb4c520110e8d667fb105e.tar.gz matterbridge-msglm-2110db6f0ca65b5f0cfb4c520110e8d667fb105e.tar.bz2 matterbridge-msglm-2110db6f0ca65b5f0cfb4c520110e8d667fb105e.zip |
Add environment override back
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/gateway.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |