mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-26 05:03:15 +00:00
1. Added console.log/info helper
2. Fixed bug with user-sessions adding virtual uids incorrectly
This commit is contained in:
@@ -691,6 +691,7 @@ function UserSessions()
|
||||
for (var key in ret)
|
||||
{
|
||||
ret[key] = { Username: ret[key], SessionId: key, State: 'Active', uid: this.getUid(ret[key]) };
|
||||
if (key.startsWith('pts/')) { delete ret[key]; }
|
||||
}
|
||||
}
|
||||
catch (e)
|
||||
@@ -702,10 +703,9 @@ function UserSessions()
|
||||
for (i in vids)
|
||||
{
|
||||
var u = this.getUsername(vids[i].uid);
|
||||
ret[i] = { Username: u, SessionId: vids[i].pid, State: 'Connected', uid: vids[i].uid, StationName: 'Xvfb-' + vids[i].uid };
|
||||
ret.push({ Username: u, SessionId: vids[i].pid, State: 'Connected', uid: vids[i].uid, StationName: 'Xvfb-' + vids[i].uid });
|
||||
}
|
||||
|
||||
|
||||
Object.defineProperty(ret, 'Active', { value: showActiveOnly(ret) });
|
||||
|
||||
if (cb)
|
||||
|
||||
Reference in New Issue
Block a user