Skip to content

Commit a4cbc66

Browse files
committed
http3: RoundTripper was renamed to Transport
1 parent 41bc703 commit a4cbc66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dnscrypt-proxy/xtransport.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type AltSupport struct {
5757

5858
type XTransport struct {
5959
transport *http.Transport
60-
h3Transport *http3.RoundTripper
60+
h3Transport *http3.Transport
6161
keepAlive time.Duration
6262
timeout time.Duration
6363
cachedIPs CachedIPs
@@ -311,7 +311,7 @@ func (xTransport *XTransport) rebuildTransport() {
311311
tlsCfg.ServerName = host
312312
return quic.DialEarly(ctx, udpConn, udpAddr, tlsCfg, cfg)
313313
}
314-
h3Transport := &http3.RoundTripper{DisableCompression: true, TLSClientConfig: &tlsClientConfig, Dial: dial}
314+
h3Transport := &http3.Transport{DisableCompression: true, TLSClientConfig: &tlsClientConfig, Dial: dial}
315315
xTransport.h3Transport = h3Transport
316316
}
317317
}

0 commit comments

Comments
 (0)