From 751cc173d41e5f6717ebb1289fe3c5bc61f2a327 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Fri, 18 Nov 2022 18:48:34 +0100 Subject: [PATCH] Fix issue when CLI is configured in config file --- config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.go b/config.go index b902792..03df59e 100644 --- a/config.go +++ b/config.go @@ -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 }