From 944c45a776ee562153dca1797bb8ec75328be0f4 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Tue, 2 Jun 2020 18:01:43 +0800 Subject: [PATCH] Fix not update behavior seed --- proxy/vmess/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/vmess/validator.go b/proxy/vmess/validator.go index 00d14d440..1682300f9 100644 --- a/proxy/vmess/validator.go +++ b/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