Explorar o código

Fix Shadowsocks OTA

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
d5cb2e88c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}