From ae517b30c083bda72335cd01d142bc3e64b492a1 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 26 Sep 2022 12:04:42 +0200 Subject: [PATCH] fix bug which caused updates to only check the first URL --- src/Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common.cpp b/src/Common.cpp index 5a8b276..5b153ca 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -198,7 +198,7 @@ void Application::CheckForUpdates() { // checks current version against latest version std::regex VersionRegex { R"(\d+\.\d+\.\d+\n*)" }; for (const auto& url : GetBackendUrlsInOrder()) { - auto Response = Http::GET(GetBackendUrlsInOrder().at(0), 443, "/v/s"); + auto Response = Http::GET(url, 443, "/v/s"); bool Matches = std::regex_match(Response, VersionRegex); if (Matches) { auto MyVersion = ServerVersion();