Skip to content

Commit

Permalink
Support TLS without certifactes
Browse files Browse the repository at this point in the history
  • Loading branch information
cv65kr committed Nov 15, 2024
1 parent d181d53 commit b19a16f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ func initTLS(cfg *Config) (*tls.Config, error) {
}

return &tls.Config{
ServerName: cfg.TLS.ServerName,
MinVersion: tls.VersionTLS12,
GetClientCertificate: getClientCertificate(cfg),
ServerName: cfg.TLS.ServerName,
MinVersion: tls.VersionTLS12,
}, nil
}

Expand Down

0 comments on commit b19a16f

Please sign in to comment.