Switch to curl

This commit is contained in:
Tixx committed 2025-01-11 22:18:50 +01:00
1 parent d7e75ae0c7
commit 26f1be0a51
5 files changed
+74 -54

No files matched your search

+1 -1
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();