From 08f65288d6a2db21bf24fb5d5cab367e3c652251 Mon Sep 17 00:00:00 2001 From: Lemoe Date: Sat, 6 Nov 2021 11:42:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20TLS=20MinVersion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/main.go b/cmd/agent/main.go index ffe5c1f..06a6979 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -144,7 +144,7 @@ func run() { timeOutCtx, cancel := context.WithTimeout(context.Background(), networkTimeOut) var securityOption grpc.DialOption if agentConf.TLS { - securityOption = grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})) + securityOption = grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{MinVersion: tls.VersionTLS12})) } else { securityOption = grpc.WithInsecure() }