Skip to content

Commit b01ce77

Browse files
authored
Fix 40d23ed
Commit message correctly described intention but code was the opposite and would result in nil pointer dereference panic, same boolean inversion that #2979 was correcting. I'm more interested in the fact no test case exercises this code path to catch either of these, but that's a separate task.
1 parent 3a9da80 commit b01ce77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnscrypt-proxy/xtransport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func (xTransport *XTransport) rebuildTransport() {
363363
}
364364
}
365365
transport.TLSClientConfig = &tlsClientConfig
366-
if http2Transport, _ := http2.ConfigureTransports(transport); http2Transport == nil {
366+
if http2Transport, _ := http2.ConfigureTransports(transport); http2Transport != nil {
367367
http2Transport.ReadIdleTimeout = timeout
368368
http2Transport.AllowHTTP = false
369369
}

0 commit comments

Comments
 (0)