Skip to content

Commit a23ffba

Browse files
committed
Fix cached packet order
1 parent 0c037cb commit a23ffba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/bufio/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func CopyPacket(destinationConn N.PacketWriter, source N.PacketReader) (n int64,
255255
if cachedReader, isCached := source.(N.CachedPacketReader); isCached {
256256
packet := cachedReader.ReadCachedPacket()
257257
if packet != nil {
258-
cachedPackets = append([]*N.PacketBuffer{packet}, cachedPackets...)
258+
cachedPackets = append(cachedPackets, packet)
259259
continue
260260
}
261261
}

0 commit comments

Comments
 (0)