Add VLESS seed tests

This commit is contained in:
yuhan6665 2024-04-28 18:37:07 -04:00
parent 76d7609051
commit f37e37632e
3 changed files with 227 additions and 3 deletions

View file

@ -229,7 +229,7 @@ func (w *VisionReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
switchToDirectCopy = &w.trafficState.Outbound.DownlinkReaderDirectCopy
}
if *withinPaddingBuffers || !ShouldStopSeed(w.addons, w.trafficState) {
if *withinPaddingBuffers || w.trafficState.NumberOfPacketReceived <= 8 || !ShouldStopSeed(w.addons, w.trafficState) {
mb2 := make(buf.MultiBuffer, 0, len(buffer))
for _, b := range buffer {
newbuffer := XtlsUnpadding(b, w.trafficState, w.isUplink, w.ctx)