Skip to content

Commit 8fc0ffc

Browse files
committed
Enable HTTP/2 pings
1 parent 97a983c commit 8fc0ffc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dnscrypt-proxy/xtransport.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ func (xTransport *XTransport) rebuildTransport() {
203203
}
204204
}
205205
transport.TLSClientConfig = &tlsClientConfig
206-
http2.ConfigureTransport(transport)
206+
if http2Transport, err := http2.ConfigureTransports(transport); err != nil {
207+
http2Transport.ReadIdleTimeout = timeout
208+
http2Transport.AllowHTTP = false
209+
}
207210
xTransport.transport = transport
208211
}
209212

0 commit comments

Comments
 (0)