From 811d3d510c6788779c9fddd25a2523e9329bb510 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sat, 12 Feb 2022 16:14:33 +0000 Subject: [PATCH] Add grpc_listen_addr config option --- cmd/headscale/cli/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/headscale/cli/utils.go b/cmd/headscale/cli/utils.go index 9e2c54cf..eca43e80 100644 --- a/cmd/headscale/cli/utils.go +++ b/cmd/headscale/cli/utils.go @@ -55,6 +55,8 @@ func LoadConfig(path string) error { viper.SetDefault("unix_socket", "/var/run/headscale.sock") viper.SetDefault("unix_socket_permission", "0o770") + viper.SetDefault("grpc_listen_addr", ":50443") + viper.SetDefault("cli.insecure", false) viper.SetDefault("cli.timeout", "5s") @@ -278,6 +280,7 @@ func getHeadscaleConfig() headscale.Config { return headscale.Config{ ServerURL: viper.GetString("server_url"), Addr: viper.GetString("listen_addr"), + GRPCAddr: viper.GetString("grpc_listen_addr"), IPPrefixes: prefixes, PrivateKeyPath: absPath(viper.GetString("private_key_path")), BaseDomain: baseDomain,