Skip to content

Commit 36e342b

Browse files
committed
Set http2Transport.ReadIdleTimeout and AllowHTTP correctly
1 parent d860d79 commit 36e342b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/xtransport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (xTransport *XTransport) rebuildTransport() {
280280
}
281281
}
282282
transport.TLSClientConfig = &tlsClientConfig
283-
if http2Transport, err := http2.ConfigureTransports(transport); err != nil {
283+
if http2Transport, err := http2.ConfigureTransports(transport); err == nil {
284284
http2Transport.ReadIdleTimeout = timeout
285285
http2Transport.AllowHTTP = false
286286
}

0 commit comments

Comments
 (0)