mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
MeshMessenger customization improvements.
This commit is contained in:
parent
eb4c7995da
commit
2c632cfcf0
5 changed files with 212 additions and 147 deletions
|
@ -1140,6 +1140,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
|
||||
// Process incoming agent JSON data
|
||||
function processAgentData(msg) {
|
||||
if (obj.agentInfo == null) return;
|
||||
var i, str = msg.toString('utf8'), command = null;
|
||||
if (str[0] == '{') {
|
||||
try { command = JSON.parse(str); } catch (ex) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue