mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-09 18:43:14 +00:00
Fix vless read cache
This commit is contained in:
parent
ac7cc09694
commit
83593aee70
|
@ -166,7 +166,7 @@ func (c *VisionConn) Read(p []byte) (n int, err error) {
|
|||
c.filterTLS(buffers)
|
||||
}
|
||||
c.remainingReader = io.MultiReader(common.Map(buffers, func(it []byte) io.Reader { return bytes.NewReader(it) })...)
|
||||
return c.remainingReader.Read(p)
|
||||
return c.Read(p)
|
||||
} else {
|
||||
if c.numberOfPacketToFilter > 0 {
|
||||
c.filterTLS([][]byte{bufferBytes})
|
||||
|
|
Loading…
Reference in a new issue