浏览代码

Fix Shadowsocks OTA

v2ray 9 年之前
父节点
当前提交
d5cb2e88c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      proxy/shadowsocks/ota.go

+ 1 - 1
proxy/shadowsocks/ota.go

@@ -49,7 +49,7 @@ func ChunkKeyGenerator(iv []byte) func() []byte {
 	return func() []byte {
 		newKey := make([]byte, 0, len(iv)+4)
 		newKey = append(newKey, iv...)
-		serial.IntToBytes(chunkId, newKey)
+		newKey = serial.IntToBytes(chunkId, newKey)
 		chunkId++
 		return newKey
 	}