mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
fix: env key replacer and remove unused function (#5547)
This commit is contained in:
parent
4e9e312984
commit
13814e1119
2 changed files with 4 additions and 15 deletions
|
|
@ -534,8 +534,7 @@ func initConfig() {
|
|||
|
||||
v.SetEnvPrefix("FB")
|
||||
v.AutomaticEnv()
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
|
||||
|
||||
if err := v.ReadInConfig(); err != nil {
|
||||
var configParseError v.ConfigParseError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue