summaryrefslogtreecommitdiffstats
path: root/bridge/config
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/config')
-rw-r--r--bridge/config/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index eff93094..0e36d960 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -186,7 +186,7 @@ func NewConfig(cfgfile string) *Config {
viper.SetConfigFile(cfgfile)
viper.SetEnvPrefix("matterbridge")
viper.AddConfigPath(".")
- viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
+ viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
viper.AutomaticEnv()
f, err := os.Open(cfgfile)
if err != nil {