Skip to content

Commit

Permalink
Merge pull request #234 from MathieuBordere/clientsession
Browse files Browse the repository at this point in the history
tls: Disable clientsessioncache
  • Loading branch information
Mathieu Borderé committed Apr 12, 2023
2 parents f91fdaa + bf58ac0 commit 3aae619
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ func SimpleListenTLSConfig(cert tls.Certificate, pool *x509.CertPool) *tls.Confi
// A user can modify the returned config to suit their specifig needs.
func SimpleDialTLSConfig(cert tls.Certificate, pool *x509.CertPool) *tls.Config {
config := &tls.Config{
MinVersion: tls.VersionTLS12,
RootCAs: pool,
Certificates: []tls.Certificate{cert},
ClientSessionCache: tls.NewLRUClientSessionCache(256),
MinVersion: tls.VersionTLS12,
RootCAs: pool,
Certificates: []tls.Certificate{cert},
}

x509cert, err := x509.ParseCertificate(cert.Certificate[0])
Expand Down

0 comments on commit 3aae619

Please sign in to comment.