Skip to content

Commit

Permalink
Merge branch 'Jigsaw-Code:master' into mzennis/upgrade-agp-8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mzennis authored Dec 24, 2024
2 parents 5866270 + 5a48272 commit c66575a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Android/app/src/go/doh/doh.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ func NewResolver(rawurl string, addrs []string, dialer *net.Dialer, auth ClientA
return nil, fmt.Errorf("No IP addresses for %s", t.hostname)
}

// Supply a client certificate during TLS handshakes.
var tlsconfig *tls.Config
// Use session cache to minimize repeat TLS handshake overhead.
tlsconfig := &tls.Config{
ClientSessionCache: tls.NewLRUClientSessionCache(64),
}
if auth != nil {
signer := newClientAuthWrapper(auth)
tlsconfig = &tls.Config{
GetClientCertificate: signer.GetClientCertificate,
}
tlsconfig.GetClientCertificate = signer.GetClientCertificate
}

// Override the dial function.
Expand Down

0 comments on commit c66575a

Please sign in to comment.