Switch to curl

This commit is contained in:
Tixx
2025-01-09 08:05:05 +01:00
parent d7e75ae0c7
commit 26f1be0a51
5 changed files with 74 additions and 54 deletions

View File

@@ -215,7 +215,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(url, 443, "/v/s");
auto Response = Http::GET(url + "/v/s");
bool Matches = std::regex_match(Response, VersionRegex);
if (Matches) {
auto MyVersion = ServerVersion();