This commit is contained in:
Sardelka 2022-07-11 12:02:46 +08:00
parent ea678ece94
commit a9397690e2
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ namespace RageCoop.Client.Menus
private static void GetAllServers() private static void GetAllServers()
{ {
List<ServerListClass> serverList = null; List<ServerListClass> serverList = null;
var realUrl = Main.Settings.MasterServer=="[AUTO]" ? DownloadString("https://ragecoop.online/stuff/masterserver") : Main.Settings.MasterServer; var realUrl = Main.Settings.MasterServer;
serverList = JsonConvert.DeserializeObject<List<ServerListClass>>(DownloadString(realUrl)); serverList = JsonConvert.DeserializeObject<List<ServerListClass>>(DownloadString(realUrl));
// Need to be processed in main thread // Need to be processed in main thread

View File

@ -141,7 +141,7 @@ namespace RageCoop.Server
Logger?.Error(ex.InnerException?.Message ?? ex.Message); Logger?.Error(ex.InnerException?.Message ?? ex.Message);
return; return;
} }
var realMaster = Settings.MasterServer=="[AUTO]" ? Util.DownloadString("https://ragecoop.online/stuff/masterserver") : Settings.MasterServer; var realMaster = Settings.MasterServer;
while (!_stopping) while (!_stopping)
{ {
string msg = string msg =