mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Fix Shadowsocks OTA
This commit is contained in:
parent
9c3ebc0453
commit
d5cb2e88c9
@ -49,7 +49,7 @@ func ChunkKeyGenerator(iv []byte) func() []byte {
|
|||||||
return func() []byte {
|
return func() []byte {
|
||||||
newKey := make([]byte, 0, len(iv)+4)
|
newKey := make([]byte, 0, len(iv)+4)
|
||||||
newKey = append(newKey, iv...)
|
newKey = append(newKey, iv...)
|
||||||
serial.IntToBytes(chunkId, newKey)
|
newKey = serial.IntToBytes(chunkId, newKey)
|
||||||
chunkId++
|
chunkId++
|
||||||
return newKey
|
return newKey
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user