Chore: Remove deprecated no-op option PreferServerCipherSuites (#46174)

* Chore: Remove deprecated no-op option PreferServerCipherSuites
from the tls configs.
Per golang docs: "PreferServerCipherSuites is a legacy field and has no effect."
This commit is contained in:
Kyle Brandt
2022-03-03 11:48:26 -05:00
committed by GitHub
parent 6f3ebbe6cc
commit 994a22f4c2
+2 -4
View File
@@ -383,8 +383,7 @@ func (hs *HTTPServer) configureHttps() error {
}
tlsCfg := &tls.Config{
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS12,
CipherSuites: []uint16{
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
@@ -424,8 +423,7 @@ func (hs *HTTPServer) configureHttp2() error {
}
tlsCfg := &tls.Config{
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS12,
CipherSuites: []uint16{
tls.TLS_CHACHA20_POLY1305_SHA256,
tls.TLS_AES_128_GCM_SHA256,