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

More work on 802.1x support with MeshCentral Satellite.

This commit is contained in:
Ylian Saint-Hilaire 2022-04-05 15:09:41 -07:00
parent 9147a9d8ab
commit 631a3a6a74
2 changed files with 125 additions and 22 deletions

View file

@ -4824,10 +4824,10 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
case 'satellite': {
// Command indicates this is a MeshCentral Satellite session and what featues it supports
if ((command.setFlags != null) && (typeof command.setFlags == 'number')) { obj.satelliteFlags = command.setFlags; }
if ((command.reqid != null) && (command.response != null) && (typeof command.satelliteFlags == 'number')) {
const event = { action: 'satelliteResponse', reqid: command.reqid, response: command.response, satelliteFlags: command.satelliteFlags, nolog: 1 }
if ((command.reqid != null) && (typeof command.satelliteFlags == 'number')) {
const event = { action: 'satelliteResponse', subaction: command.subaction, reqid: command.reqid, response: command.response, satelliteFlags: command.satelliteFlags, nolog: 1 }
if (typeof command.nodeid == 'string') { event.nodeid = command.nodeid; }
parent.parent.DispatchEvent([ '*' ], obj, event);
parent.parent.DispatchEvent(['*'], obj, event);
}
break;
}