Fix config path for lassoctl

This commit is contained in:
Elara 2021-11-11 16:31:50 -08:00
parent 593c56d91a
commit 50e253e211

View File

@ -57,7 +57,8 @@ func initConfig() {
// Use config file from the flag. // Use config file from the flag.
viper.SetConfigFile(cfgFile) viper.SetConfigFile(cfgFile)
} else { } else {
viper.SetConfigType("/etc") viper.AddConfigPath("/etc")
viper.SetConfigType("toml")
viper.SetConfigName("lassoctl") viper.SetConfigName("lassoctl")
} }