mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
fix(linter): add linter rules to reduce the chance for invalid FIPS settings BE-11979 (#975)
This commit is contained in:
@@ -128,7 +128,7 @@ func agentServer(t *testing.T) string {
|
||||
cert, err := tls.X509KeyPair([]byte(localhostCert), []byte(localhostKey))
|
||||
require.NoError(t, err)
|
||||
|
||||
tlsConfig := crypto.CreateTLSConfiguration()
|
||||
tlsConfig := crypto.CreateTLSConfiguration(false)
|
||||
tlsConfig.Certificates = []tls.Certificate{cert}
|
||||
|
||||
l, err := tls.Listen("tcp", "127.0.0.1:0", tlsConfig)
|
||||
|
||||
Reference in New Issue
Block a user