mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-07-17 12:13:49 +00:00
Remove restricted region
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include "Http.h"
|
||||
#include "RegionHandler.h"
|
||||
#include "Network/network.hpp"
|
||||
#include "Security/Init.h"
|
||||
#include "Utils.h"
|
||||
@@ -226,7 +227,12 @@ void Parse(std::string Data, SOCKET CSocket) {
|
||||
TCPTerminate = true;
|
||||
Data.clear();
|
||||
futures.push_back(std::async(std::launch::async, []() {
|
||||
CoreSend("B" + HTTP::Get("https://backend." + Utils::RegionToTopLevelDomain(options.region) + "/servers-info"));
|
||||
std::string resp = HTTP::Get("https://backend." + RegionHandler::RegionToTopLevelDomain(options.region) + "/servers-info");
|
||||
if (resp == "") {
|
||||
RegionHandler::TopLevelDomainFailed(true);
|
||||
resp = HTTP::Get("https://backend." + RegionHandler::RegionToTopLevelDomain(options.region) + "/servers-info");
|
||||
}
|
||||
CoreSend("B" + resp);
|
||||
}));
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user