1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-10 10:15:23 -05:00

Format: run go fmt ./...

This commit is contained in:
loyalsoldier
2020-08-30 21:17:22 +08:00
parent 4c9210cf11
commit 1fa89b32d4
9 changed files with 20 additions and 21 deletions

View File

@@ -142,7 +142,7 @@ func (v *TimedUserValidator) Add(u *protocol.MemoryUser) error {
account := uu.user.Account.(*MemoryAccount)
if v.behaviorFused == false {
hashkdf := hmac.New(func()hash.Hash{return sha256.New()}, []byte("VMESSBSKDF"))
hashkdf := hmac.New(func() hash.Hash { return sha256.New() }, []byte("VMESSBSKDF"))
hashkdf.Write(account.ID.Bytes())
v.behaviorSeed = crc64.Update(v.behaviorSeed, crc64.MakeTable(crc64.ECMA), hashkdf.Sum(nil))
}