mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-09-01 06:01:47 +00:00
@@ -120,9 +120,10 @@ func initConfig() {
|
||||
} else {
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
viper.AddConfigPath("/etc/hysteria/")
|
||||
viper.AddConfigPath("$HOME/.hysteria")
|
||||
viper.SupportedExts = append([]string{"yaml", "yml"}, viper.SupportedExts...)
|
||||
viper.AddConfigPath(".")
|
||||
viper.AddConfigPath("$HOME/.hysteria")
|
||||
viper.AddConfigPath("/etc/hysteria/")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user