fix hostnames

This commit is contained in:
Lion Kortlepel 2021-01-13 22:41:38 +01:00
parent d394d7b5a6
commit c75acbff76
2 changed files with 3 additions and 3 deletions

View File

@ -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");
}

View File

@ -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 "";
}