diff --git a/meshagent.js b/meshagent.js index 1ba96572..6d60182f 100644 --- a/meshagent.js +++ b/meshagent.js @@ -48,7 +48,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { // Other clean up may be needed here if (obj.unauth) { delete obj.unauth; } if (obj.agentUpdate != null) { obj.fs.close(obj.agentUpdate.fd); obj.agentUpdate = null; } - if (obj.agentInfo.capabilities & 0x20) { // This is a temporary agent, remote it + if ((obj.agentInfo) && (obj.agentInfo.capabilities) && (obj.agentInfo.capabilities & 0x20)) { // This is a temporary agent, remote it // Delete this node including network interface information and events obj.db.Remove(obj.dbNodeKey); // Remove node with that id obj.db.Remove('if' + obj.dbNodeKey); // Remove interface information diff --git a/package.json b/package.json index 60c41bd9..cf0c7a83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.1.6-f", + "version": "0.1.6-h", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default.handlebars b/views/default.handlebars index 3e771f76..a23c5efd 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -351,18 +351,18 @@