From 79fa3a8920423bfb160ee519d8f109b9a5e6cae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Mon, 13 Nov 2023 09:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEtls=E6=9C=80=E4=BD=8E?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=BA1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugins/webtitle.go | 2 +- WebScan/lib/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/webtitle.go b/Plugins/webtitle.go index 20b1b87..037e733 100644 --- a/Plugins/webtitle.go +++ b/Plugins/webtitle.go @@ -229,7 +229,7 @@ func GetProtocol(host string, Timeout int64) (protocol string) { if err != nil { return } - conn := tls.Client(socksconn, &tls.Config{InsecureSkipVerify: true}) + conn := tls.Client(socksconn, &tls.Config{MinVersion: tls.VersionTLS10, InsecureSkipVerify: true}) defer func() { if conn != nil { defer func() { diff --git a/WebScan/lib/client.go b/WebScan/lib/client.go index c7f82b9..a4d443f 100644 --- a/WebScan/lib/client.go +++ b/WebScan/lib/client.go @@ -46,7 +46,7 @@ func InitHttpClient(ThreadsNum int, DownProxy string, Timeout time.Duration) err MaxIdleConns: 0, MaxIdleConnsPerHost: ThreadsNum * 2, IdleConnTimeout: keepAlive, - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + TLSClientConfig: &tls.Config{MinVersion: tls.VersionTLS10, InsecureSkipVerify: true}, TLSHandshakeTimeout: 5 * time.Second, DisableKeepAlives: false, }