lint: remove depreciated tls config field

From the docs:
PreferServerCipherSuites is a legacy field and has no effect.
It used to control whether the server would follow the client's or the
server's preference. Servers now select the best mutually supported
cipher suite based on logic that takes into account inferred client
hardware, server hardware, and security.
This commit is contained in:
ffranr
2023-01-27 13:16:10 +00:00
parent db30c8384d
commit 4f8e09f156

View File

@@ -439,7 +439,6 @@ func configFromCert(crt *tls.Certificate, certPool *x509.CertPool) *tls.Config {
tlsConf.CipherSuites = []uint16{ tlsConf.CipherSuites = []uint16{
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
} }
tlsConf.PreferServerCipherSuites = true
tlsConf.RootCAs = certPool tlsConf.RootCAs = certPool
tlsConf.InsecureSkipVerify = true tlsConf.InsecureSkipVerify = true