0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

reverseproxy: Make TLS renegotiation optional

This commit is contained in:
Matthew Holt 2022-06-14 09:05:25 -06:00
parent aaf6794b31
commit f9b42c3772
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -403,7 +403,7 @@ func (t TLSConfig) MakeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) {
// Renegotiation // Renegotiation
switch t.Renegotiation { switch t.Renegotiation {
case "never": case "never", "":
cfg.Renegotiation = tls.RenegotiateNever cfg.Renegotiation = tls.RenegotiateNever
case "once": case "once":
cfg.Renegotiation = tls.RenegotiateOnceAsClient cfg.Renegotiation = tls.RenegotiateOnceAsClient