mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-07-21 22:20:37 +00:00
Made regionhandler trigger in http requests
This commit is contained in:
+3
-3
@@ -11,9 +11,9 @@
|
||||
#include <string>
|
||||
class HTTP {
|
||||
public:
|
||||
static bool Download(const std::string& IP, const beammp_fs_string& Path, const std::string& Hash);
|
||||
static std::string Post(const std::string& IP, const std::string& Fields);
|
||||
static std::string Get(const std::string& IP);
|
||||
static bool Download(const std::string& IP, const beammp_fs_string& Path, const std::string& Hash, const bool& redirect = true);
|
||||
static std::string Post(std::string IP, const std::string& Fields, const bool& redirect = true);
|
||||
static std::string Get(std::string IP, const bool& redirect = true);
|
||||
static bool ProgressBar(size_t c, size_t t);
|
||||
static void StartProxy();
|
||||
public:
|
||||
|
||||
@@ -15,6 +15,7 @@ public:
|
||||
RegionHandler() = delete;
|
||||
static void TopLevelDomainFailed();
|
||||
static std::string RegionToTopLevelDomain();
|
||||
static std::string RedirectURL(const std::string& URL);
|
||||
private:
|
||||
static inline unsigned int mRegionIndex { 0 };
|
||||
const static inline std::array<std::string, 2> mValidTLDs {"beammp.com", "beammp.ru"};
|
||||
|
||||
Reference in New Issue
Block a user