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:
parent
801567f564
commit
4bfec1ba61
17 changed files with 22 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue