Skip to content

Commit

Permalink
Merge pull request #395 from ava-labs/fix-flag-name
Browse files Browse the repository at this point in the history
fix flag name
  • Loading branch information
StephenButtolph authored Sep 13, 2020
2 parents 66f1971 + 3fb65c4 commit 41e3ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 41e3ced

Please sign in to comment.