From 7a8efb2e9bbbe2ad56fa52cba33160c73d80e6fa Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Sat, 12 Sep 2020 12:28:32 -0400 Subject: [PATCH] fix flag name --- main/params.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/params.go b/main/params.go index 8a6bf472ceca..9827f7994bce 100644 --- a/main/params.go +++ b/main/params.go @@ -194,7 +194,7 @@ func init() { fs.BoolVar(&Config.HTTPSEnabled, "http-tls-enabled", false, "Upgrade the HTTP server to HTTPs") fs.StringVar(&Config.HTTPSKeyFile, "http-tls-key-file", "", "TLS private key file for the HTTPs server") fs.StringVar(&Config.HTTPSCertFile, "http-tls-cert-file", "", "TLS certificate file for the HTTPs server") - fs.BoolVar(&Config.APIRequireAuthToken, "api-require-auth", false, "Require authorization token to call HTTP APIs") + fs.BoolVar(&Config.APIRequireAuthToken, "api-auth-required", false, "Require authorization token to call HTTP APIs") fs.StringVar(&Config.APIAuthPassword, "api-auth-password", "", "Password used to create/validate API authorization tokens. Can be changed via API call.") // Bootstrapping: @@ -427,7 +427,7 @@ func init() { Config.HTTPPort = uint16(*httpPort) if Config.APIRequireAuthToken { if Config.APIAuthPassword == "" { - errs.Add(errors.New("api-auth-password must be provided if api-require-auth is true")) + errs.Add(errors.New("api-auth-password must be provided if api-auth-required is true")) return } if !password.SufficientlyStrong(Config.APIAuthPassword, password.OK) {