mirror of
https://github.com/lightninglabs/aperture.git
synced 2025-12-17 17:14:19 +01:00
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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user