|
|
@ -35,10 +35,10 @@ func (v *Account) AsAccount() (protocol.Account, error) {
|
|
|
|
log.Error("VMess: Failed to parse ID: ", err)
|
|
|
|
log.Error("VMess: Failed to parse ID: ", err)
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
protoId := protocol.NewID(id)
|
|
|
|
protoID := protocol.NewID(id)
|
|
|
|
return &InternalAccount{
|
|
|
|
return &InternalAccount{
|
|
|
|
ID: protoId,
|
|
|
|
ID: protoID,
|
|
|
|
AlterIDs: protocol.NewAlterIDs(protoId, uint16(v.AlterId)),
|
|
|
|
AlterIDs: protocol.NewAlterIDs(protoID, uint16(v.AlterId)),
|
|
|
|
Security: v.SecuritySettings.AsSecurity(),
|
|
|
|
Security: v.SecuritySettings.AsSecurity(),
|
|
|
|
}, nil
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|