From c852a3d160ef8c0cf2e68baf2861c955ca003bcb Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 18 Jan 2021 16:25:02 -0800 Subject: [PATCH] meshcore.js fix when updating older agents. --- agents/meshcore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/agents/meshcore.js b/agents/meshcore.js index 5f898a1b..a5cd4d79 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -3800,6 +3800,7 @@ function createMeshCore(agent) { sendAgentMessage('Self Update failed, because the url cannot be verified', 3); throw new Error('BadCert'); } + if (certs[0].digest == null) { return; } if ((checkServerIdentity.servertlshash != null) && (checkServerIdentity.servertlshash.toLowerCase() != certs[0].digest.split(':').join('').toLowerCase())) { sendConsoleText('Self Update failed, because the supplied certificate does not match', sessionid); sendAgentMessage('Self Update failed, because the supplied certificate does not match', 3);