From e29812112677072ee67182edba1468a92a92e19c Mon Sep 17 00:00:00 2001 From: v2ray Date: Sun, 28 Feb 2016 21:00:53 +0100 Subject: [PATCH] Fix shadowsocks OTA issue --- 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 0e0cddaf..e8c7e5e0 100644 --- a/proxy/shadowsocks/ota.go +++ b/proxy/shadowsocks/ota.go @@ -37,8 +37,8 @@ func (this *Authenticator) Authenticate(auth []byte, data []byte) []byte { func HeaderKeyGenerator(key []byte, iv []byte) func() []byte { return func() []byte { newKey := make([]byte, 0, len(key)+len(iv)) - newKey = append(newKey, key...) newKey = append(newKey, iv...) + newKey = append(newKey, key...) return newKey } }