mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 10:45:36 +00:00
fix hostnames
This commit is contained in:
parent
d394d7b5a6
commit
c75acbff76
@ -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");
|
||||
}
|
||||
|
@ -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 "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user