From a9397690e2901fd8a8bdae0ecda17532c2327ef2 Mon Sep 17 00:00:00 2001 From: Sardelka Date: Mon, 11 Jul 2022 12:02:46 +0800 Subject: [PATCH] Fix --- RageCoop.Client/Menus/Sub/ServersMenu.cs | 2 +- RageCoop.Server/Server.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RageCoop.Client/Menus/Sub/ServersMenu.cs b/RageCoop.Client/Menus/Sub/ServersMenu.cs index f5f025b..f7f0634 100644 --- a/RageCoop.Client/Menus/Sub/ServersMenu.cs +++ b/RageCoop.Client/Menus/Sub/ServersMenu.cs @@ -77,7 +77,7 @@ namespace RageCoop.Client.Menus private static void GetAllServers() { List 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>(DownloadString(realUrl)); // Need to be processed in main thread diff --git a/RageCoop.Server/Server.cs b/RageCoop.Server/Server.cs index 1bdbffa..4b92858 100644 --- a/RageCoop.Server/Server.cs +++ b/RageCoop.Server/Server.cs @@ -141,7 +141,7 @@ namespace RageCoop.Server Logger?.Error(ex.InnerException?.Message ?? ex.Message); return; } - var realMaster = Settings.MasterServer=="[AUTO]" ? Util.DownloadString("https://ragecoop.online/stuff/masterserver") : Settings.MasterServer; + var realMaster = Settings.MasterServer; while (!_stopping) { string msg =