mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-16 02:40:37 +01:00
Enable HTTP/2 pings
This commit is contained in:
parent
97a983c6b3
commit
8fc0ffc35f
@ -203,7 +203,10 @@ func (xTransport *XTransport) rebuildTransport() {
|
||||
}
|
||||
}
|
||||
transport.TLSClientConfig = &tlsClientConfig
|
||||
http2.ConfigureTransport(transport)
|
||||
if http2Transport, err := http2.ConfigureTransports(transport); err != nil {
|
||||
http2Transport.ReadIdleTimeout = timeout
|
||||
http2Transport.AllowHTTP = false
|
||||
}
|
||||
xTransport.transport = transport
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user