mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 10:01:30 +00:00
Fix shadowtls in go versiojns below 1.20
This commit is contained in:
parent
3c5bc842ed
commit
f516026540
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue