Skip to content

Commit f516026

Browse files
committed
Fix shadowtls in go versiojns below 1.20
1 parent 3c5bc84 commit f516026

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport/shadowtls/tls_go119/handshake_client.go

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func (c *Conn) makeClientHello() (*clientHelloMsg, ecdheParameters, error) {
145145
if err := config.SessionIDGenerator(hello.marshal(), hello.sessionId); err != nil {
146146
return nil, nil, errors.New("tls: generate session id failed: " + err.Error())
147147
}
148+
hello.raw = nil
148149
} else {
149150
if _, err := io.ReadFull(config.rand(), hello.sessionId); err != nil {
150151
return nil, nil, errors.New("tls: short read from Rand: " + err.Error())

0 commit comments

Comments
 (0)