summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gateway/gateway.go2
1 files changed, 1 insertions, 1 deletions
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
}