From 06b7bad7146607f46652c9bd766de3f95028c370 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 21 Apr 2020 20:42:11 +0200 Subject: Lowercase account names. Fixes #1108 (#1110) --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gateway') diff --git a/gateway/gateway.go b/gateway/gateway.go index 1e958a86..27265d15 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -108,7 +108,7 @@ func (gw *Gateway) AddBridge(cfg *config.Bridge) error { func (gw *Gateway) checkConfig(cfg *config.Bridge) { match := false for _, key := range gw.Router.Config.Viper().AllKeys() { - if strings.HasPrefix(key, cfg.Account) { + if strings.HasPrefix(key, strings.ToLower(cfg.Account)) { match = true break } -- cgit v1.2.3