diff --git a/transport/shadowtls/tls_go119/handshake_client.go b/transport/shadowtls/tls_go119/handshake_client.go index f2deb822..0cae1ee6 100644 --- a/transport/shadowtls/tls_go119/handshake_client.go +++ b/transport/shadowtls/tls_go119/handshake_client.go @@ -145,6 +145,7 @@ func (c *Conn) makeClientHello() (*clientHelloMsg, ecdheParameters, error) { if err := config.SessionIDGenerator(hello.marshal(), hello.sessionId); err != nil { return nil, nil, errors.New("tls: generate session id failed: " + err.Error()) } + hello.raw = nil } else { if _, err := io.ReadFull(config.rand(), hello.sessionId); err != nil { return nil, nil, errors.New("tls: short read from Rand: " + err.Error())