From a4b6ded864446eaf793c474348c973c5882422f3 Mon Sep 17 00:00:00 2001 From: juzeon Date: Thu, 8 Feb 2024 22:12:38 +0800 Subject: [PATCH] fix: restrict curve to x25519 --- scanner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/scanner.go b/scanner.go index a0e6e20..a29569f 100644 --- a/scanner.go +++ b/scanner.go @@ -32,6 +32,7 @@ func ScanTLS(ip net.IP, out chan<- string) { c := tls.Client(conn, &tls.Config{ InsecureSkipVerify: true, NextProtos: []string{"h2", "http/1.1"}, + CurvePreferences: []tls.CurveID{tls.X25519}, }) err = c.Handshake() if err != nil {