Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenLian authored and joeljeske committed Feb 4, 2023
1 parent ef8db0b commit 4cf19f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/advancedtls/advancedtls.go
Expand Up @@ -242,7 +242,7 @@ func (o *ClientOptions) config() (*tls.Config, error) {
return nil, fmt.Errorf("GetIdentityCertificatesForServer cannot be specified on the client side")
}
if o.VersionOptions.MinVersion > o.VersionOptions.MaxVersion {
return nil, fmt.Errorf("the minimum TLS version is larger than maximum TLS version")
return nil, fmt.Errorf("the minimum TLS version is larger than the maximum TLS version")
}
config := &tls.Config{
ServerName: o.ServerNameOverride,
Expand Down Expand Up @@ -318,7 +318,7 @@ func (o *ServerOptions) config() (*tls.Config, error) {
return nil, fmt.Errorf("GetIdentityCertificatesForClient cannot be specified on the server side")
}
if o.VersionOptions.MinVersion > o.VersionOptions.MaxVersion {
return nil, fmt.Errorf("the minimum TLS version is larger than maximum TLS version")
return nil, fmt.Errorf("the minimum TLS version is larger than the maximum TLS version")
}
clientAuth := tls.NoClientCert
if o.RequireClientCert {
Expand Down

0 comments on commit 4cf19f9

Please sign in to comment.