From 8fc0ffc35f933d66aafa009b61448c94885ff8d2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 21 Sep 2021 12:57:42 +0200 Subject: [PATCH] Enable HTTP/2 pings --- dnscrypt-proxy/xtransport.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }