mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 12:01:52 +00:00
updated recovery self update to skip auth check if agent doesn't expose control channel cert, and server doesn't pass an inner cert
This commit is contained in:
parent
872cdfbc9c
commit
e2368bf7ff
1 changed files with 2 additions and 0 deletions
|
@ -4382,6 +4382,8 @@ function createMeshCore(agent)
|
|||
// Check that the certificate is the one expected by the server, fail if not.
|
||||
if (checkServerIdentity.servertlshash == null)
|
||||
{
|
||||
if (require('MeshAgent').ServerInfo == null || require('MeshAgent').ServerInfo.ControlChannelCertificate == null) { return; }
|
||||
|
||||
sendConsoleText('Self Update failed, because the url cannot be verified', sessionid);
|
||||
sendAgentMessage('Self Update failed, because the url cannot be verified', 3);
|
||||
throw new Error('BadCert');
|
||||
|
|
Loading…
Reference in a new issue