浏览代码

Fix not update behavior seed

Shelikhoo 5 年之前
父节点
当前提交
944c45a776
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      proxy/vmess/validator.go

+ 1 - 1
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