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

Fixed meshcore update faliure case.

This commit is contained in:
Ylian Saint-Hilaire 2021-01-28 13:41:19 -08:00
parent 16c2bce40d
commit 29c6b7877e
5 changed files with 7 additions and 5 deletions

View file

@ -1344,7 +1344,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Add server TLS cert hash
var tlsCertHash = null;
if (parent.parent.args.ignoreagenthashcheck !== true) {
if ((parent.parent.args.ignoreagenthashcheck == null) || (parent.parent.args.ignoreagenthashcheck === false)) { // TODO: If ignoreagenthashcheck is an array of IP addresses, not sure how to handle this.
tlsCertHash = parent.webCertificateFullHashs[domain.id];
if (tlsCertHash != null) { command.servertlshash = Buffer.from(tlsCertHash, 'binary').toString('hex'); }
}