mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 16:22:22 +08: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 New Issue
Block a user