Skip to content

Commit 99bd258

Browse files
authored
Merge branch 'master' into master
2 parents 3ee7cfb + f8861ca commit 99bd258

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

modules/caddyhttp/reverseproxy/httptransport.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,13 @@ func (h *HTTPTransport) NewTransport(caddyCtx caddy.Context) (*http.Transport, e
363363
// site owners control the backends), so it must be exclusive
364364
if len(h.Versions) == 1 && h.Versions[0] == "3" {
365365
h.h3Transport = new(http3.RoundTripper)
366+
if h.TLS != nil {
367+
var err error
368+
h.h3Transport.TLSClientConfig, err = h.TLS.MakeTLSClientConfig(caddyCtx)
369+
if err != nil {
370+
return nil, fmt.Errorf("making TLS client config for HTTP/3 transport: %v", err)
371+
}
372+
}
366373
} else if len(h.Versions) > 1 && sliceContains(h.Versions, "3") {
367374
return nil, fmt.Errorf("if HTTP/3 is enabled to the upstream, no other HTTP versions are supported")
368375
}

0 commit comments

Comments
 (0)