This commit is contained in:
ljw committed 2024-09-13 22:39:00 +08:00
1 parent d9ed2127da
commit 3006f5bd7c
2 files changed
+19 -3

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func Init(rowVal interface{}) *viper.Viper {
}
v := viper.New()
v.AutomaticEnv()
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
v.SetEnvPrefix("RUSTDESK_API")
v.SetConfigFile(config)
v.SetConfigType("yaml")