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.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})