1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

Fix issue when CLI is configured in config file

This commit is contained in:
Juan Font Alonso 2022-11-18 18:48:34 +01:00 committed by Juan Font
parent ff134f2b8e
commit 751cc173d4

View File

@ -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
}