mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added IDER to MeshCMD, fixed MeshAgent connection exception.
This commit is contained in:
parent
73ca2c5780
commit
7e6d4e6b48
10 changed files with 1045 additions and 6 deletions
|
@ -696,7 +696,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
}
|
||||
}
|
||||
|
||||
completeAgentConnection3();
|
||||
completeAgentConnection3(device);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -736,10 +736,10 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
parent.parent.DispatchEvent(['*', obj.dbMeshKey], obj, { etype: 'node', action: 'addnode', node: device, msg: ('Added device ' + obj.agentInfo.computerName + ' to mesh ' + mesh.name), domain: domain.id });
|
||||
}
|
||||
|
||||
completeAgentConnection3();
|
||||
completeAgentConnection3(device);
|
||||
}
|
||||
|
||||
function completeAgentConnection3() {
|
||||
function completeAgentConnection3(device) {
|
||||
// Check if this agent is already connected
|
||||
const dupAgent = parent.wsagents[obj.dbNodeKey];
|
||||
parent.wsagents[obj.dbNodeKey] = obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue