From a50d16e9b295bc52a7ae54cc57403617a1cd0edf Mon Sep 17 00:00:00 2001 From: zhuxianglong <56494565@qq.com> Date: Mon, 10 Feb 2025 14:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTLS=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/ahttp/ahttp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ahttp/ahttp.go b/utils/ahttp/ahttp.go index 089dd64..797138e 100644 --- a/utils/ahttp/ahttp.go +++ b/utils/ahttp/ahttp.go @@ -104,8 +104,8 @@ func newTransport(config *Config) *http.Transport { IdleConnTimeout: config.IdleConnectionTimeout, TLSClientConfig: &tls.Config{ InsecureSkipVerify: config.InsecureSkipVerify, - MinVersion: tls.VersionTLS12, - MaxVersion: tls.VersionSSL30, + MinVersion: tls.VersionTLS10, + MaxVersion: tls.VersionTLS13, CurvePreferences: []tls.CurveID{tls.X25519, tls.CurveP256}, }, TLSHandshakeTimeout: config.TLSHandshakeTimeout,