mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added IP-KVM port status tracking.
This commit is contained in:
parent
79e9745231
commit
448aeec6e7
4 changed files with 48 additions and 25 deletions
|
@ -816,6 +816,12 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
const xagent = parent.wsagents[docs[i]._id];
|
||||
if ((xagent != null) && (xagent.sessions != null)) { docs[i].sessions = xagent.sessions; }
|
||||
|
||||
// Add IP-KVM sessions
|
||||
if (parent.parent.ipKvmManager != null) {
|
||||
const xipkvmport = parent.parent.ipKvmManager.managedPorts[docs[i]._id];
|
||||
if ((xipkvmport != null) && (xipkvmport.sessions != null)) { docs[i].sessions = xipkvmport.sessions; }
|
||||
}
|
||||
|
||||
r[meshid].push(docs[i]);
|
||||
}
|
||||
try { ws.send(JSON.stringify({ action: 'nodes', responseid: command.responseid, nodes: r, tag: command.tag })); } catch (ex) { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue