1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-03 17:13:16 +00:00

Added fix, to correct the server uri obtained from Meshcentral.com migration

This commit is contained in:
Bryan Roe
2019-02-14 16:07:36 -08:00
parent b9af163039
commit 09eac9f968

View File

@@ -3013,6 +3013,12 @@ void MeshServer_ConnectEx(MeshAgentHostContainer *agent)
agent->serveruri[0] = 0;
}
if (strcmp("wss://swarm.meshcentral.com:443/agent.ashx", agent->serveruri) == 0)
{
// Bad server value, from MeshCentral Migration... We need to fix the URI
strcpy_s(agent->serveruri, sizeof(agent->serveruri), "wss://meshcentral.com:443/agent.ashx");
}
#ifndef MICROSTACK_NOTLS
ILibParseUriResult result = ILibParseUri(serverUrl, &host, &port, &path, &meshServer);
#else