mirror of https://github.com/v2ray/v2ray-core
Fix not update behavior seed
parent
5e59534333
commit
944c45a776
|
@ -130,7 +130,7 @@ func (v *TimedUserValidator) Add(u *protocol.MemoryUser) error {
|
||||||
|
|
||||||
if v.behaviorFused == false {
|
if v.behaviorFused == false {
|
||||||
account := uu.user.Account.(*MemoryAccount)
|
account := uu.user.Account.(*MemoryAccount)
|
||||||
crc64.Update(v.behaviorSeed, crc64.MakeTable(crc64.ECMA), account.ID.Bytes())
|
v.behaviorSeed = crc64.Update(v.behaviorSeed, crc64.MakeTable(crc64.ECMA), account.ID.Bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue