Skip to content

Commit a4b6ded

Browse files
juzeonyuhan6665
authored andcommitted
fix: restrict curve to x25519
1 parent 7103888 commit a4b6ded

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scanner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func ScanTLS(ip net.IP, out chan<- string) {
3232
c := tls.Client(conn, &tls.Config{
3333
InsecureSkipVerify: true,
3434
NextProtos: []string{"h2", "http/1.1"},
35+
CurvePreferences: []tls.CurveID{tls.X25519},
3536
})
3637
err = c.Handshake()
3738
if err != nil {

0 commit comments

Comments
 (0)