1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 07:25:19 -05:00

Update IV for instruction encryption

This commit is contained in:
V2Ray
2015-09-15 01:32:55 +02:00
parent 2564c909a5
commit 06e19d17e5
6 changed files with 43 additions and 20 deletions

View File

@@ -14,10 +14,10 @@ func (us *MockUserSet) AddUser(user core.User) error {
return nil
}
func (us *MockUserSet) GetUser(userhash []byte) (*core.ID, bool) {
func (us *MockUserSet) GetUser(userhash []byte) (*core.ID, int64, bool) {
idx, found := us.UserHashes[string(userhash)]
if found {
return &us.UserIds[idx], true
return &us.UserIds[idx], 1234, true
}
return nil, false
return nil, 0, false
}