mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More BitLocker improvements.
This commit is contained in:
parent
e5e86fee19
commit
f2bc7d5349
4 changed files with 58 additions and 80 deletions
17
meshagent.js
17
meshagent.js
|
@ -1940,21 +1940,8 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
// TODO: Check that the agent has an interface that is the same as the one we got this websocket connection on. Only set if we have a match.
|
||||
}
|
||||
|
||||
// Volumes and BitLocker
|
||||
if (command.volumes != null) {
|
||||
for (var i in command.volumes) {
|
||||
// Fix the incoming data and cut down how much data we use
|
||||
const v = command.volumes[i];
|
||||
if (typeof v.size == 'string') { v.size = parseInt(v.size); }
|
||||
if (v.recoveryPassword == '') { delete v.recoveryPassword; }
|
||||
if (v.identifier == '') { delete v.identifier; }
|
||||
if (v.name == '') { delete v.name; }
|
||||
if (v.removable != true) { delete v.removable; }
|
||||
if (v.protectionStatus == 'On') { v.protectionStatus = true; } else { delete v.protectionStatus; }
|
||||
if (v.volumeStatus == "FullyDecrypted") { delete v.volumeStatus; }
|
||||
}
|
||||
if (JSON.stringify(device.volumes) != JSON.stringify(command.volumes)) { device.volumes = command.volumes; change = 1; }
|
||||
}
|
||||
// Remove old volumes and BitLocker data, this is part of sysinfo.
|
||||
delete device.volumes;
|
||||
|
||||
// If there are changes, event the new device
|
||||
if (change == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue