Skip to content

Commit

Permalink
fix: keep the 0 default value when TLS setting not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhem Bonnefille committed Nov 14, 2024
1 parent 43d1afa commit 5e5a4c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ type TLSConfig struct {

func (t TLSConfig) GetMinVersion() (uint16, error) {
switch t.MinVersion {
case "":
// Not set, so let the tls package decide
return 0, nil
case "1.0":
return tls.VersionTLS10, nil
case "1.1":
Expand Down

0 comments on commit 5e5a4c8

Please sign in to comment.