From d5cb2e88c9f306fbac5c45fcf4fbbaaa41d9b030 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 4 Jul 2016 09:47:14 +0200 Subject: [PATCH] Fix Shadowsocks OTA --- proxy/shadowsocks/ota.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/shadowsocks/ota.go b/proxy/shadowsocks/ota.go index 369f92208..ec3fdb608 100644 --- a/proxy/shadowsocks/ota.go +++ b/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 }