Browse Source

Fix not update behavior seed

pull/2545/head
Shelikhoo 5 years ago
parent
commit
944c45a776
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
  1. 2
      proxy/vmess/validator.go

2
proxy/vmess/validator.go

@ -130,7 +130,7 @@ func (v *TimedUserValidator) Add(u *protocol.MemoryUser) error {
if v.behaviorFused == false {
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

Loading…
Cancel
Save