mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
Fix shadowsocks OTA issue
This commit is contained in:
parent
3d4da5822b
commit
e298121126
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user