From 7db327cfc8729889820a38e2c0d4cd5618980ab2 Mon Sep 17 00:00:00 2001 From: xtaci Date: Wed, 28 Aug 2024 15:49:44 +0800 Subject: [PATCH] mod vendor --- vendor/github.com/xtaci/kcp-go/v5/fec.go | 3 +-- vendor/modules.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/xtaci/kcp-go/v5/fec.go b/vendor/github.com/xtaci/kcp-go/v5/fec.go index 330d7f589..523bda2c1 100644 --- a/vendor/github.com/xtaci/kcp-go/v5/fec.go +++ b/vendor/github.com/xtaci/kcp-go/v5/fec.go @@ -420,12 +420,11 @@ func (enc *fecEncoder) encode(b []byte, rto uint32) (ps [][]byte) { func (enc *fecEncoder) markData(data []byte) { binary.LittleEndian.PutUint32(data, enc.next) binary.LittleEndian.PutUint16(data[4:], typeData) - enc.next++ + enc.next = (enc.next + 1) % enc.paws } func (enc *fecEncoder) markParity(data []byte) { binary.LittleEndian.PutUint32(data, enc.next) binary.LittleEndian.PutUint16(data[4:], typeParity) - // sequence wrap will only happen at parity shard enc.next = (enc.next + 1) % enc.paws } diff --git a/vendor/modules.txt b/vendor/modules.txt index 76be10c3f..664ee42fe 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -44,7 +44,7 @@ github.com/tjfoc/gmsm/sm4 # github.com/urfave/cli v1.22.15 ## explicit; go 1.11 github.com/urfave/cli -# github.com/xtaci/kcp-go/v5 v5.6.16 +# github.com/xtaci/kcp-go/v5 v5.6.17 ## explicit; go 1.21 github.com/xtaci/kcp-go/v5 # github.com/xtaci/qpp v1.1.17