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, }