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

Switched to new style network information from agent.

This commit is contained in:
Ylian Saint-Hilaire 2020-06-26 14:43:58 -07:00
parent 364ab8af56
commit ae1f36de68
9 changed files with 1902 additions and 1784 deletions

View file

@ -1157,6 +1157,9 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
}
case 'netinfo':
{
// Check if network information is present
if ((command.netif2 == null) && (command.netif == null)) return;
// Sent by the agent to update agent network interface information
delete command.action;
command.updateTime = Date.now();
@ -1372,8 +1375,8 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
}
default: {
parent.agentStats.unknownAgentActionCount++;
parent.parent.debug('agent', 'Unknown agent action (' + obj.remoteaddrport + '): ' + command.action + '.');
console.log('Unknown agent action (' + obj.remoteaddrport + '): ' + command.action + '.');
parent.parent.debug('agent', 'Unknown agent action (' + obj.remoteaddrport + '): ' + command + '.');
console.log('Unknown agent action (' + obj.remoteaddrport + '): ' + command + '.');
break;
}
}