This commit is contained in:
wenyifan
2023-11-15 15:45:09 +08:00
parent 52aa2027d0
commit 3038eb66d8
5 changed files with 118 additions and 77 deletions

View File

@ -70,7 +70,7 @@ func (d *tlsDialer) Handshake(ctx context.Context, conn net.Conn, options ...dia
})
}
}
tlsConn := tls.UClient(conn, utlsConf, tls.HelloChrome_102)
tlsConn := tls.UClient(conn, utlsConf, tls.HelloChrome_Auto)
if err := tlsConn.HandshakeContext(ctx); err != nil {
conn.Close()
return nil, err