meshcore.js fix when updating older agents.
Ylian Saint-Hilaire committed
Jan 18, 2021 at 16:25 UTC
c852a3d160ef8c0cf2e68baf2861c955ca003bcb
1 file changed
+1
agents/meshcore.js
+1
@@ -3800,6 +3800,7 @@ function createMeshCore(agent) {
3800
sendAgentMessage('Self Update failed, because the url cannot be verified', 3);
3801
throw new Error('BadCert');
3802
}
3803
+ if (certs[0].digest == null) { return; }
3804
if ((checkServerIdentity.servertlshash != null) && (checkServerIdentity.servertlshash.toLowerCase() != certs[0].digest.split(':').join('').toLowerCase())) {
3805
sendConsoleText('Self Update failed, because the supplied certificate does not match', sessionid);
3806
sendAgentMessage('Self Update failed, because the supplied certificate does not match', 3);