fix(agent): set minimum TLS version to 1.2 in agent configuration

This commit is contained in:
yusing
2026-01-09 00:32:50 +08:00
parent f809f0e865
commit b1af82ee21

View File

@@ -133,6 +133,7 @@ func (cfg *AgentConfig) InitWithCerts(ctx context.Context, ca, crt, key []byte)
Certificates: []tls.Certificate{clientCert},
RootCAs: caCertPool,
ServerName: common.CertsDNSName,
MinVersion: tls.VersionTLS12,
}
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)