diff --git a/dnscrypt-proxy/xtransport.go b/dnscrypt-proxy/xtransport.go index 5dccec3b..c8db28fb 100644 --- a/dnscrypt-proxy/xtransport.go +++ b/dnscrypt-proxy/xtransport.go @@ -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 }