mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-18 23:00:12 +00:00
fix a bug in cmdkey generation
This commit is contained in:
1 parent
baaef1dad5
commit
23b6b987ca
3 files changed
+28
-1
No files matched your search
+1
-1
@@ -46,6 +46,6 @@ func NewID(uuid *uuid.UUID) *ID {
|
||||
md5hash := md5.New()
|
||||
md5hash.Write(uuid.Bytes())
|
||||
md5hash.Write([]byte("c48619fe-8f02-49e0-b9e9-edf763e17e21"))
|
||||
md5.Sum(id.cmdKey[:0])
|
||||
md5hash.Sum(id.cmdKey[:0])
|
||||
return id
|
||||
}
|
||||
Reference in new issue
Block a user