Fixed location issue

This commit is contained in:
Ylian Saint-Hilaire 2017-08-30 13:52:56 -07:00
parent e7ee302503
commit 06ee41c3ad
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.0.6-t",
"version": "0.0.6-u",
"keywords": [
"Remote Management",
"Intel AMT",