fully switch to new backend urls

This commit is contained in:
Lion Kortlepel
2021-03-30 01:02:53 +02:00
parent 3094d382ff
commit b4850f09a9
3 changed files with 4 additions and 3 deletions

View File

@@ -37,12 +37,12 @@ void THeartbeatThread::operator()() {
Body += "&pps=" + Application::PPS();
T = Http::POST(Application::GetBackendHostname(), "/heartbeatv2", {}, Body, false);
T = Http::POST(Application::GetBackendHostname(), "/heartbeat", {}, Body, false);
if (T.substr(0, 2) != "20") {
//Backend system refused server startup!
std::this_thread::sleep_for(std::chrono::milliseconds(500));
T = Http::POST(Application::GetBackendHostname(), "/heartbeatv2", {}, Body, false);
T = Http::POST(Application::GetBackendHostname(), "/heartbeat", {}, Body, false);
// TODO backup2 + HTTP flag (no TSL)
if (T.substr(0, 2) != "20") {
warn("Backend system refused server! Server might not show in the public list");