bumps minimal tls version (#1012)

This commit is contained in:
Nikolay 2021-01-13 01:35:47 +03:00 committed by GitHub
parent 3e451ccdda
commit 7bf5d48315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,9 @@ func Serve(addr string, rh RequestHandler) {
logger.Fatalf("cannot load TLS cert from tlsCertFile=%q, tlsKeyFile=%q: %s", *tlsCertFile, *tlsKeyFile, err)
}
cfg := &tls.Config{
Certificates: []tls.Certificate{cert},
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
}
ln = tls.NewListener(ln, cfg)
}