From 4f8e09f1565ee55d9f787db4b9baf41a0937d385 Mon Sep 17 00:00:00 2001 From: ffranr Date: Fri, 27 Jan 2023 13:16:10 +0000 Subject: [PATCH] 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. --- proxy/proxy_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/proxy/proxy_test.go b/proxy/proxy_test.go index 8b2e8fd..7aada97 100644 --- a/proxy/proxy_test.go +++ b/proxy/proxy_test.go @@ -439,7 +439,6 @@ func configFromCert(crt *tls.Certificate, certPool *x509.CertPool) *tls.Config { tlsConf.CipherSuites = []uint16{ tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, } - tlsConf.PreferServerCipherSuites = true tlsConf.RootCAs = certPool tlsConf.InsecureSkipVerify = true