From c75acbff76811d25288e3b3c515cb5e6fcf063c3 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 13 Jan 2021 22:41:38 +0100 Subject: [PATCH] fix hostnames --- src/Init/Heartbeat.cpp | 4 ++-- src/Network/Auth.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Init/Heartbeat.cpp b/src/Init/Heartbeat.cpp index 0adde69..fb38486 100644 --- a/src/Init/Heartbeat.cpp +++ b/src/Init/Heartbeat.cpp @@ -56,12 +56,12 @@ std::string RunPromise(const std::string& host, const std::string& target, const R = GenerateCall(); if (!CustomIP.empty()) R += "&ip=" + CustomIP; - T = RunPromise("https://beammp.com", "/heartbeatv2", R); + T = RunPromise("beammp.com", "/heartbeatv2", R); if (T.substr(0, 2) != "20") { //Backend system refused server startup! std::this_thread::sleep_for(std::chrono::seconds(10)); - T = RunPromise("https://backup1.beammp.com", "/heartbeatv2", R); + T = RunPromise("backup1.beammp.com", "/heartbeatv2", R); if (T.substr(0, 2) != "20") { warn("Backend system refused server! Server might not show in the public list"); } diff --git a/src/Network/Auth.cpp b/src/Network/Auth.cpp index bab6ac7..8c5b18c 100644 --- a/src/Network/Auth.cpp +++ b/src/Network/Auth.cpp @@ -20,7 +20,7 @@ std::string GetClientInfo(const std::string& PK) { if (!PK.empty()) { - return PostHTTP("https://auth.beammp.com", 443, "/pkToUser", R"({"key":")" + PK + "\"}", true); + return PostHTTP("auth.beammp.com", 443, "/pkToUser", R"({"key":")" + PK + "\"}", true); } return ""; }