@@ -111,9 +111,9 @@ func (t *UQuicHTTP3Transport) RoundTrip(req *http.Request) (*http.Response, erro
111111
112112 // Create standard HTTP/3 client as fallback
113113 client := & stdhttp.Client {
114- Transport : & http3.RoundTripper {
114+ Transport : & http3.Transport {
115115 TLSClientConfig : t .TLSClientConfig ,
116- QuicConfig : & quic.Config {
116+ QUICConfig : & quic.Config {
117117 HandshakeIdleTimeout : 30 * time .Second ,
118118 MaxIdleTimeout : 90 * time .Second ,
119119 KeepAlivePeriod : 15 * time .Second ,
@@ -219,9 +219,9 @@ func (t *HTTP3Transport) RoundTrip(req *http.Request) (*http.Response, error) {
219219
220220 // Create an HTTP/3 client
221221 client := & stdhttp.Client {
222- Transport : & http3.RoundTripper {
222+ Transport : & http3.Transport {
223223 TLSClientConfig : t .TLSClientConfig ,
224- QuicConfig : t .QuicConfig ,
224+ QUICConfig : t .QuicConfig ,
225225 },
226226 }
227227
@@ -259,9 +259,9 @@ func (t *HTTP3Transport) RoundTrip(req *http.Request) (*http.Response, error) {
259259
260260// ConfigureHTTP3Client configures an http.Client to use HTTP/3
261261func ConfigureHTTP3Client (client * stdhttp.Client , tlsConfig * tls.Config ) {
262- client .Transport = & http3.RoundTripper {
262+ client .Transport = & http3.Transport {
263263 TLSClientConfig : tlsConfig ,
264- QuicConfig : & quic.Config {
264+ QUICConfig : & quic.Config {
265265 HandshakeIdleTimeout : 30 * time .Second ,
266266 MaxIdleTimeout : 90 * time .Second ,
267267 KeepAlivePeriod : 15 * time .Second ,
@@ -277,11 +277,11 @@ type HTTP3RoundTripper struct {
277277 // QuicConfig is the QUIC configuration
278278 QuicConfig * quic.Config
279279
280- // Forwarder is the underlying HTTP/3 round tripper
281- Forwarder * http3.RoundTripper
280+ // Forwarder is the underlying HTTP/3 transport
281+ Forwarder * http3.Transport
282282
283283 // Dialer is the custom dialer for HTTP/3 connections
284- Dialer func (ctx context.Context , addr string , tlsCfg * tls.Config , cfg * quic.Config ) (quic.EarlyConnection , error )
284+ Dialer func (ctx context.Context , addr string , tlsCfg * tls.Config , cfg * quic.Config ) (* quic.Conn , error )
285285}
286286
287287// NewHTTP3RoundTripper creates a new HTTP/3 round tripper with custom fingerprinting
@@ -292,9 +292,9 @@ func NewHTTP3RoundTripper(tlsConfig *tls.Config, quicConfig *quic.Config) *HTTP3
292292 }
293293
294294 // Create the forwarder with default dialer
295- rt .Forwarder = & http3.RoundTripper {
295+ rt .Forwarder = & http3.Transport {
296296 TLSClientConfig : tlsConfig ,
297- QuicConfig : quicConfig ,
297+ QUICConfig : quicConfig ,
298298 }
299299
300300 return rt
@@ -337,9 +337,9 @@ func (rt *HTTP3RoundTripper) RoundTrip(req *http.Request) (*http.Response, error
337337 }
338338
339339 // Create a custom HTTP/3 client with our dialer
340- customRT := & http3.RoundTripper {
340+ customRT := & http3.Transport {
341341 TLSClientConfig : rt .TLSClientConfig ,
342- QuicConfig : rt .QuicConfig ,
342+ QUICConfig : rt .QuicConfig ,
343343 Dial : rt .Dialer ,
344344 }
345345
@@ -394,7 +394,7 @@ func (rt *HTTP3RoundTripper) RoundTrip(req *http.Request) (*http.Response, error
394394
395395// HTTP3Connection represents an HTTP/3 connection with associated metadata
396396type HTTP3Connection struct {
397- QuicConn interface {} // Can be quic.EarlyConnection or uquic.EarlyConnection
397+ QuicConn interface {} // Can be * quic.Conn or uquic.EarlyConnection
398398 RawConn net.PacketConn
399399 Proxys []string
400400 IsUQuic bool // Flag to indicate if this is a UQuic connection
0 commit comments