http3: RoundTripper was renamed to Transport

This commit is contained in:
Frank Denis 2025-02-21 18:12:42 +01:00
parent 41bc703873
commit a4cbc66fdd

View file

@ -57,7 +57,7 @@ type AltSupport struct {
type XTransport struct {
transport *http.Transport
h3Transport *http3.RoundTripper
h3Transport *http3.Transport
keepAlive time.Duration
timeout time.Duration
cachedIPs CachedIPs
@ -311,7 +311,7 @@ func (xTransport *XTransport) rebuildTransport() {
tlsCfg.ServerName = host
return quic.DialEarly(ctx, udpConn, udpAddr, tlsCfg, cfg)
}
h3Transport := &http3.RoundTripper{DisableCompression: true, TLSClientConfig: &tlsClientConfig, Dial: dial}
h3Transport := &http3.Transport{DisableCompression: true, TLSClientConfig: &tlsClientConfig, Dial: dial}
xTransport.h3Transport = h3Transport
}
}