Add region tld

This commit is contained in:
SaltySnail
2026-06-23 02:47:21 +02:00
parent 54f49d81e2
commit e393239fdc
5 changed files with 45 additions and 8 deletions
+5 -8
View File
@@ -80,16 +80,13 @@ public:
static inline struct Settings Settings { };
static std::vector<std::string> GetBackendUrlsInOrder() {
return {
"https://backend.beammp.com",
};
}
static std::vector<std::string> GetBackendUrlsInOrder();
static std::string GetServerCheckUrl() { return "https://check.beammp.com"; }
static std::string GetServerCheckUrl();
static std::string GetBackendUrlForAuth() { return "https://auth.beammp.com"; }
static std::string GetBackendUrlForSocketIO() { return "https://backend.beammp.com"; }
static std::string GetBackendUrlForAuth();
static std::string GetBackendUrlForSocketIO();
static std::string RegionToTopLevelDomain(const std::string region);
static void CheckForUpdates();
static std::array<uint8_t, 3> VersionStrToInts(const std::string& str);
static bool IsOutdated(const Version& Current, const Version& Newest);
+1
View File
@@ -87,6 +87,7 @@ struct Settings {
General_Debug,
General_AllowGuests,
General_InformationPacket,
General_Region,
};
Sync<std::unordered_map<Key, SettingsTypeVariant>> SettingsMap;