mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-09 05:49:54 +00:00
parent
c73570f582
commit
1965535e69
@ -120,9 +120,10 @@ func initConfig() {
|
|||||||
} else {
|
} else {
|
||||||
viper.SetConfigName("config")
|
viper.SetConfigName("config")
|
||||||
viper.SetConfigType("yaml")
|
viper.SetConfigType("yaml")
|
||||||
viper.AddConfigPath("/etc/hysteria/")
|
viper.SupportedExts = append([]string{"yaml", "yml"}, viper.SupportedExts...)
|
||||||
viper.AddConfigPath("$HOME/.hysteria")
|
|
||||||
viper.AddConfigPath(".")
|
viper.AddConfigPath(".")
|
||||||
|
viper.AddConfigPath("$HOME/.hysteria")
|
||||||
|
viper.AddConfigPath("/etc/hysteria/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user