Преглед на файлове

Fix shadowsocks OTA issue

v2ray преди 9 години
родител
ревизия
e298121126
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      proxy/shadowsocks/ota.go

+ 1 - 1
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
 	}
 }