rollback for utls

This commit is contained in:
wenyifan
2022-10-14 18:05:59 +08:00
parent 577eba2242
commit 6f48753890
6 changed files with 6 additions and 19 deletions

6
tls.go
View File

@ -3,7 +3,6 @@ package gost
import (
"crypto/tls"
"errors"
utls "github.com/refraction-networking/utls"
"net"
"sync"
"time"
@ -278,10 +277,7 @@ func wrapTLSClient(conn net.Conn, tlsConfig *tls.Config, timeout time.Duration)
conn.SetDeadline(time.Now().Add(timeout))
defer conn.SetDeadline(time.Time{})
tlsConn := utls.UClient(conn, &utls.Config{
ServerName: tlsConfig.ServerName,
InsecureSkipVerify: tlsConfig.InsecureSkipVerify,
}, utls.HelloChrome_102)
tlsConn := tls.Client(conn, tlsConfig)
// Otherwise perform handshake, but don't verify the domain
//