mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-21 11:04:13 -04:00
Updated recovery self-update to skip authentication check if agent doesn't expose control channel cert, and server did not supply credentials.
This commit is contained in:
parent
2faede16d4
commit
872cdfbc9c
@ -245,6 +245,8 @@ function agentUpdate_Start(updateurl, updateoptions)
|
|||||||
// Check that the certificate is the one expected by the server, fail if not.
|
// Check that the certificate is the one expected by the server, fail if not.
|
||||||
if (checkServerIdentity.servertlshash == null)
|
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);
|
sendConsoleText('Self Update failed, because the url cannot be verified', sessionid);
|
||||||
sendAgentMessage('Self Update failed, because the url cannot be verified', 3);
|
sendAgentMessage('Self Update failed, because the url cannot be verified', 3);
|
||||||
throw new Error('BadCert');
|
throw new Error('BadCert');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user