|
|
@@ -19,6 +19,11 @@ var (
|
|
19
|
19
|
|
|
20
|
20
|
generateSecretCommand = app.Command("generate-secret",
|
|
21
|
21
|
"Generate new secret")
|
|
|
22
|
+ generateCloakHost = generateSecretCommand.Flag("cloak-host",
|
|
|
23
|
+ "A host to use for TLS cloaking.").
|
|
|
24
|
+ Short('c').
|
|
|
25
|
+ Default("storage.googleapis.com").
|
|
|
26
|
+ String()
|
|
22
|
27
|
generateSecretType = generateSecretCommand.Arg("type",
|
|
23
|
28
|
"A type of secret to generate. Valid options are 'simple', 'secured' and 'tls'").
|
|
24
|
29
|
Required().
|
|
|
@@ -123,7 +128,7 @@ func main() {
|
|
123
|
128
|
|
|
124
|
129
|
switch kingpin.MustParse(app.Parse(os.Args[1:])) {
|
|
125
|
130
|
case generateSecretCommand.FullCommand():
|
|
126
|
|
- cli.Generate(*generateSecretType)
|
|
|
131
|
+ cli.Generate(*generateSecretType, *generateCloakHost)
|
|
127
|
132
|
case proxyCommand.FullCommand():
|
|
128
|
133
|
err := config.Init(
|
|
129
|
134
|
config.Opt{Option: config.OptionTypeDebug, Value: *proxyDebug},
|