Fix vless read cache

This commit is contained in:
世界 2023-03-06 11:19:23 +08:00
parent ac7cc09694
commit 83593aee70
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -166,7 +166,7 @@ func (c *VisionConn) Read(p []byte) (n int, err error) {
c.filterTLS(buffers) c.filterTLS(buffers)
} }
c.remainingReader = io.MultiReader(common.Map(buffers, func(it []byte) io.Reader { return bytes.NewReader(it) })...) 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 { } else {
if c.numberOfPacketToFilter > 0 { if c.numberOfPacketToFilter > 0 {
c.filterTLS([][]byte{bufferBytes}) c.filterTLS([][]byte{bufferBytes})