Explorar o código

add cli parameter

louis-zhou %!s(int64=3) %!d(string=hai) anos
pai
achega
242fcacae0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      netclient/cli_options/flags.go

+ 6 - 0
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"},