1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

refactor protos

This commit is contained in:
Darien Raymond
2016-10-12 18:43:55 +02:00
parent c1f91567ad
commit fc6a706166
44 changed files with 331 additions and 313 deletions

View File

@@ -118,11 +118,11 @@ L:
func (this *TimedUserValidator) Add(user *protocol.User) error {
idx := len(this.validUsers)
this.validUsers = append(this.validUsers, user)
rawAccount, err := user.GetTypedAccount(&AccountPB{})
rawAccount, err := user.GetTypedAccount(&Account{})
if err != nil {
return err
}
account := rawAccount.(*Account)
account := rawAccount.(*InternalAccount)
nowSec := time.Now().Unix()