fix: restrict curve to x25519

This commit is contained in:
juzeon
2024-02-11 20:29:56 -05:00
committed by yuhan6665
parent 7103888409
commit a4b6ded864
+1
View File
@@ -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 {