1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added server self-update support along with many fixes.

This commit is contained in:
Ylian Saint-Hilaire 2017-09-06 18:10:24 -07:00
parent de2e5402f6
commit ac53c7ae3c
7 changed files with 234 additions and 18 deletions

View file

@ -300,7 +300,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
// We have a location in the database for this remote IP
var iploc = nodes[0], x = {};
x.publicip = iploc.ip;
x.iploc = iploc.loc + ',' + (Math.floor((new Date(command.value.date)) / 1000));
x.iploc = iploc.loc + ',' + (Math.floor((new Date(iploc.date)) / 1000));
ChangeAgentLocationInfo(x);
} else {
// Check if we need to ask for the IP location