mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 08:10:26 +00:00
parent
19eec2ed03
commit
06b7bad714
@ -108,7 +108,7 @@ func (gw *Gateway) AddBridge(cfg *config.Bridge) error {
|
|||||||
func (gw *Gateway) checkConfig(cfg *config.Bridge) {
|
func (gw *Gateway) checkConfig(cfg *config.Bridge) {
|
||||||
match := false
|
match := false
|
||||||
for _, key := range gw.Router.Config.Viper().AllKeys() {
|
for _, key := range gw.Router.Config.Viper().AllKeys() {
|
||||||
if strings.HasPrefix(key, cfg.Account) {
|
if strings.HasPrefix(key, strings.ToLower(cfg.Account)) {
|
||||||
match = true
|
match = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user