mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Updated MeshCentral Assistant with self-update system.
This commit is contained in:
parent
11374d1809
commit
1b590dba5e
6 changed files with 42 additions and 2 deletions
|
@ -218,6 +218,9 @@ function createMeshCore(agent) {
|
|||
case 'sessions':
|
||||
this._send({ cmd: 'sessions', sessions: tunnelUserCount });
|
||||
break;
|
||||
case 'meshToolInfo':
|
||||
try { mesh.SendCommand({ action: 'meshToolInfo', name: data.name, hash: data.hash, cookie: data.cookie?true:false, pipe: true }); } catch (e) { }
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (e) { removeRegisteredApp(this); this.end(); return; }
|
||||
|
@ -1133,6 +1136,10 @@ function createMeshCore(agent) {
|
|||
r.corehashhex = getSHA384FileHash(coreDumpPath).toString('hex'); // Hash of core dump file
|
||||
}
|
||||
mesh.SendCommand(JSON.stringify(r));
|
||||
break;
|
||||
case 'meshToolInfo':
|
||||
if (data.pipe == true) { delete data.pipe; delete data.action; data.cmd = 'meshToolInfo'; broadcastToRegisteredApps(data); }
|
||||
break;
|
||||
default:
|
||||
// Unknown action, ignore it.
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue