Fix issue when CLI is configured in config file
This commit is contained in:
parent
ff134f2b8e
commit
751cc173d4
|
@ -597,6 +597,13 @@ func GetHeadscaleConfig() (*Config, error) {
|
|||
|
||||
ACL: GetACLConfig(),
|
||||
|
||||
CLI: CLIConfig{
|
||||
Address: viper.GetString("cli.address"),
|
||||
APIKey: viper.GetString("cli.api_key"),
|
||||
Timeout: viper.GetDuration("cli.timeout"),
|
||||
Insecure: viper.GetBool("cli.insecure"),
|
||||
},
|
||||
|
||||
Log: GetLogConfig(),
|
||||
}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue