start fixing backend heartbeat

This commit is contained in:
Lion Kortlepel committed 2022-02-03 19:51:59 +01:00
1 parent fd12ee672d
commit 9f892af997
6 files changed
+29 -27

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ void Application::CheckForUpdates() {
Application::SetSubsystemStatus("UpdateCheck", Application::Status::Starting);
// checks current version against latest version
std::regex VersionRegex { R"(\d+\.\d+\.\d+\n*)" };
auto Response = Http::GET(GetBackendHostname(), 443, "/v/s");
auto Response = Http::GET(GetBackendUrlsInOrder().at(0), 443, "/v/s");
bool Matches = std::regex_match(Response, VersionRegex);
if (Matches) {
auto MyVersion = ServerVersion();