Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroPatti committed Aug 10, 2023
1 parent 7220276 commit 22150be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,15 @@ func validateConfig(c *Config) error {
}
if c.HTTPBackend.KeyFile != "" || c.HTTPBackend.CertFile != "" {
if c.HTTPBackend.KeyFile == "" || c.HTTPBackend.CertFile == "" {
return errors.New("To use mTLS with the http proxy, both a key and a certifacte must be provided")
return errors.New("To use mTLS with the http proxy, both a key and a certificate must be provided")
}
}
}

if c.GRPCBackend != nil {
if c.GRPCBackend.KeyFile != "" || c.GRPCBackend.CertFile != "" {
if c.GRPCBackend.KeyFile == "" || c.GRPCBackend.CertFile == "" {
return errors.New("To use mTLS with the grpc proxy, both a key and a certifacte must be provided")
return errors.New("To use mTLS with the grpc proxy, both a key and a certificate must be provided")
}
}
}
Expand Down

0 comments on commit 22150be

Please sign in to comment.