From 242fcacae0d7a537e0422752d269db66a7808ba3 Mon Sep 17 00:00:00 2001 From: louis-zhou Date: Wed, 19 Jan 2022 17:56:28 +0800 Subject: [PATCH] add cli parameter --- netclient/cli_options/flags.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netclient/cli_options/flags.go b/netclient/cli_options/flags.go index be4b3806..64995bdf 100644 --- a/netclient/cli_options/flags.go +++ b/netclient/cli_options/flags.go @@ -118,6 +118,12 @@ func GetFlags(hostname string) []cli.Flag { Value: "", Usage: "Address + API Port (e.g. 1.2.3.4:8081) of Netmaker server.", }, + &cli.StringFlag{ + Name: "grpcssl", + EnvVars: []string{"NETCLIENT_GRPCSSL"}, + Value: "", + Usage: "Tells clients to use SSL to connect to GRPC if 'on'. Disable if 'off'. Off by default.", + }, &cli.StringFlag{ Name: "key", Aliases: []string{"k"},