mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 20:59:19 +02:00
Set reserved to zero after Read()
Thank @IRN-Kawakaze for testing
This commit is contained in:
parent
25ea69fc3a
commit
4c8ee0af50
|
@ -129,6 +129,13 @@ func (bind *netBindClient) connectTo(endpoint *netEndpoint) error {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
i, err := c.Read(v.buff)
|
i, err := c.Read(v.buff)
|
||||||
|
|
||||||
|
if i > 3 {
|
||||||
|
v.buff[1] = 0
|
||||||
|
v.buff[2] = 0
|
||||||
|
v.buff[3] = 0
|
||||||
|
}
|
||||||
|
|
||||||
v.bytes = i
|
v.bytes = i
|
||||||
v.endpoint = endpoint
|
v.endpoint = endpoint
|
||||||
v.err = err
|
v.err = err
|
||||||
|
|
Loading…
Reference in New Issue