From 06ee41c3ad1afbfdc1bd295008eb04048c5e6a5f Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 30 Aug 2017 13:52:56 -0700 Subject: [PATCH] Fixed location issue --- meshagent.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshagent.js b/meshagent.js index aa3a2a95..64bca3aa 100644 --- a/meshagent.js +++ b/meshagent.js @@ -393,7 +393,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { case 'location': { // Sent by the agent to update location information - if ((command.type == 'publicip') && (typeof command.value == 'object') && (command.value.ip) && (command.value.loc)) { + if ((command.type == 'publicip') && (command.value != null) && (typeof command.value == 'object') && (command.value.ip) && (command.value.loc)) { var x = {}; x.publicip = command.value.ip; x.iploc = command.value.loc; diff --git a/package.json b/package.json index 2caa2562..8efd4f32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.0.6-t", + "version": "0.0.6-u", "keywords": [ "Remote Management", "Intel AMT",