From a4cbc66fdde23a9511455304217d7adea6db6140 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 21 Feb 2025 18:12:42 +0100 Subject: [PATCH] http3: RoundTripper was renamed to Transport --- dnscrypt-proxy/xtransport.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnscrypt-proxy/xtransport.go b/dnscrypt-proxy/xtransport.go index 0bd1b93c..7652566f 100644 --- a/dnscrypt-proxy/xtransport.go +++ b/dnscrypt-proxy/xtransport.go @@ -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 } }