mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-07-14 10:44:05 +00:00
Remove restricted region
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
#include "Http.h"
|
||||
#include "RegionHandler.h"
|
||||
#include "Options.h"
|
||||
#include <Logger.h>
|
||||
#include <Network/network.hpp>
|
||||
@@ -137,8 +138,8 @@ void HTTP::StartProxy() {
|
||||
{ "User-Agent", "BeamMP-Launcher/" + GetVer() + GetPatch() },
|
||||
{ "Accept", "*/*" }
|
||||
};
|
||||
httplib::Client backend("https://backend." + Utils::RegionToTopLevelDomain(options.region));
|
||||
httplib::Client forum("https://forum." + Utils::RegionToTopLevelDomain(options.region));
|
||||
httplib::Client backend("https://backend." + RegionHandler::RegionToTopLevelDomain(options.region));
|
||||
httplib::Client forum("https://forum." + RegionHandler::RegionToTopLevelDomain(options.region));
|
||||
|
||||
const std::string pattern = ".*";
|
||||
|
||||
@@ -217,7 +218,7 @@ void HTTP::StartProxy() {
|
||||
}
|
||||
|
||||
if (error) {
|
||||
cli_res = forum.Get("/user_avatar/forum." + Utils::RegionToTopLevelDomain(options.region) + "/user/0/0.png", headers);
|
||||
cli_res = forum.Get("/user_avatar/forum." + RegionHandler::RegionToTopLevelDomain(options.region) + "/user/0/0.png", headers);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user