mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
http3: RoundTripper was renamed to Transport
This commit is contained in:
parent
41bc703873
commit
a4cbc66fdd
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ type AltSupport struct {
|
||||||
|
|
||||||
type XTransport struct {
|
type XTransport struct {
|
||||||
transport *http.Transport
|
transport *http.Transport
|
||||||
h3Transport *http3.RoundTripper
|
h3Transport *http3.Transport
|
||||||
keepAlive time.Duration
|
keepAlive time.Duration
|
||||||
timeout time.Duration
|
timeout time.Duration
|
||||||
cachedIPs CachedIPs
|
cachedIPs CachedIPs
|
||||||
|
@ -311,7 +311,7 @@ func (xTransport *XTransport) rebuildTransport() {
|
||||||
tlsCfg.ServerName = host
|
tlsCfg.ServerName = host
|
||||||
return quic.DialEarly(ctx, udpConn, udpAddr, tlsCfg, cfg)
|
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
|
xTransport.h3Transport = h3Transport
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue