1
0
Fork 0

Remove deprecated PreferServerCipherSuites

This commit is contained in:
Frédéric Guillot 2023-10-05 19:54:33 -07:00
parent a69b161725
commit 67eb574fd4

View file

@ -100,10 +100,9 @@ func startUnixSocketServer(server *http.Server, socketFile string) {
func tlsConfig() *tls.Config {
// See https://blog.cloudflare.com/exposing-go-on-the-internet/
// And https://wikia.mozilla.org/Security/Server_Side_TLS
// And https://wiki.mozilla.org/Security/Server_Side_TLS
return &tls.Config{
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP256,
tls.X25519,