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

Improved MeshCentral1 migration, improved MeshAgent

This commit is contained in:
Ylian Saint-Hilaire 2017-11-09 17:18:30 -08:00
parent 801567f564
commit 4bfec1ba61
17 changed files with 22 additions and 12 deletions

View file

@ -31,7 +31,7 @@ var settings = {
// Check the server certificate fingerprint
function onVerifyServer(clientName, certs) {
try { for (var i in certs) { if (certs[i].fingerprint.replace(/:/g, '') == settings.serverHttpsHash) { return; } } } catch (e) { }
if (serverhash != null) { console.log('Error: Failed to verify server certificate.'); return false; }
if (serverhash != null) { console.log('Error: Failed to verify server certificate.'); throw 'Invalid server certificate'; }
}
// Print a debug message