reverseproxy: Add tls_curves option to HTTP transport (#5851)

This commit is contained in:
Bas Westerbaan
2024-01-13 21:56:23 +01:00
committed by GitHub
parent cc0c0cf03e
commit f658fd05ac
2 changed files with 23 additions and 0 deletions

View File

@ -1072,6 +1072,16 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
}
h.TLS.InsecureSkipVerify = true
case "tls_curves":
args := d.RemainingArgs()
if len(args) == 0 {
return d.ArgErr()
}
if h.TLS == nil {
h.TLS = new(TLSConfig)
}
h.TLS.Curves = args
case "tls_timeout":
if !d.NextArg() {
return d.ArgErr()