mirror of
https://github.com/XTLS/RealiTLScanner.git
synced 2026-09-27 17:47:59 +03:00
fix: restrict curve to x25519
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user