From 7c8aab1d4795239035ff53b5147c957acdfa96b8 Mon Sep 17 00:00:00 2001 From: Richard Gooch Date: Sun, 7 Feb 2021 10:40:46 -0800 Subject: [PATCH 1/2] keymaster: enable round-robin dialer by default. --- cmd/keymaster/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/keymaster/main.go b/cmd/keymaster/main.go index 37f2bbc3..7a8accd1 100644 --- a/cmd/keymaster/main.go +++ b/cmd/keymaster/main.go @@ -49,7 +49,7 @@ var ( cliUsername = flag.String("username", "", "username for keymaster") checkDevices = flag.Bool("checkDevices", false, "CheckU2F devices in your system") cliFilePrefix = flag.String("fileprefix", "", "Prefix for the output files") - roundRobinDialer = flag.Bool("roundRobinDialer", false, + roundRobinDialer = flag.Bool("roundRobinDialer", true, "If true, use the smart round-robin dialer") FilePrefix = "keymaster" From bf8ffc51dce90b6b6121d9091f2e30e65645c345 Mon Sep 17 00:00:00 2001 From: Richard Gooch Date: Sun, 9 Jun 2024 09:30:31 -0700 Subject: [PATCH 2/2] cmd/keymaster: sort flag variables by flag name. --- cmd/keymaster/main.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/keymaster/main.go b/cmd/keymaster/main.go index e7c0ea11..90a598fe 100644 --- a/cmd/keymaster/main.go +++ b/cmd/keymaster/main.go @@ -53,24 +53,25 @@ var ( ) var ( + checkDevices = flag.Bool("checkDevices", false, + "CheckU2F devices in your system") configFilename = flag.String("config", filepath.Join(getUserHomeDir(), keymasterSubdir, "client_config.yml"), "The filename of the configuration") - rootCAFilename = flag.String("rootCAFilename", "", - "(optional) name for using non OS root CA to verify TLS connections") configHost = flag.String("configHost", "", "Get a bootstrap config from this host") - cliUsername = flag.String("username", "", "username for keymaster") - checkDevices = flag.Bool("checkDevices", false, - "CheckU2F devices in your system") cliFilePrefix = flag.String("fileprefix", "", "Prefix for the output files") + rootCAFilename = flag.String("rootCAFilename", "", + "(optional) name for using non OS root CA to verify TLS connections") roundRobinDialer = flag.Bool("roundRobinDialer", false, "If true, use the smart round-robin dialer") - webauthBrowser = flag.String("webauthBrowser", "", - "Browser command to use for webauth") + cliUsername = flag.String("username", "", "username for keymaster") printVersion = flag.Bool("version", false, "Print version and exit") + webauthBrowser = flag.String("webauthBrowser", "", + "Browser command to use for webauth") + FilePrefix = "keymaster" )