mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
fix hostnames
This commit is contained in:
@@ -56,12 +56,12 @@ std::string RunPromise(const std::string& host, const std::string& target, const
|
|||||||
R = GenerateCall();
|
R = GenerateCall();
|
||||||
if (!CustomIP.empty())
|
if (!CustomIP.empty())
|
||||||
R += "&ip=" + CustomIP;
|
R += "&ip=" + CustomIP;
|
||||||
T = RunPromise("https://beammp.com", "/heartbeatv2", R);
|
T = RunPromise("beammp.com", "/heartbeatv2", R);
|
||||||
|
|
||||||
if (T.substr(0, 2) != "20") {
|
if (T.substr(0, 2) != "20") {
|
||||||
//Backend system refused server startup!
|
//Backend system refused server startup!
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(10));
|
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") {
|
if (T.substr(0, 2) != "20") {
|
||||||
warn("Backend system refused server! Server might not show in the public list");
|
warn("Backend system refused server! Server might not show in the public list");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
std::string GetClientInfo(const std::string& PK) {
|
std::string GetClientInfo(const std::string& PK) {
|
||||||
if (!PK.empty()) {
|
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 "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user