summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-06-14 09:05:25 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-06-14 09:05:25 -0600
commitf9b42c37723ba6fbbfc31c61119fc42963770ce9 (patch)
tree462816a19eb4061c1b447d2da6f3c3d1cef61f08 /modules/caddyhttp/reverseproxy
parentaaf6794b31ca790ecc501edf983ebf95a45b3897 (diff)
reverseproxy: Make TLS renegotiation optional
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r--modules/caddyhttp/reverseproxy/httptransport.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/httptransport.go b/modules/caddyhttp/reverseproxy/httptransport.go
index e6ff188..8bce580 100644
--- a/modules/caddyhttp/reverseproxy/httptransport.go
+++ b/modules/caddyhttp/reverseproxy/httptransport.go
@@ -403,7 +403,7 @@ func (t TLSConfig) MakeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) {
// Renegotiation
switch t.Renegotiation {
- case "never":
+ case "never", "":
cfg.Renegotiation = tls.RenegotiateNever
case "once":
cfg.Renegotiation = tls.RenegotiateOnceAsClient