From 3192fe35e667ebcab8156a6f15fd1e9ca9e39535 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 2 Sep 2023 13:22:33 -0500 Subject: [PATCH] update default master url --- Application/Main.cs | 7 ++++++- .../Configuration/ApplicationConfiguration.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Application/Main.cs b/Application/Main.cs index 41eb9901c..2edb79a20 100644 --- a/Application/Main.cs +++ b/Application/Main.cs @@ -432,7 +432,12 @@ namespace IW4MAdmin.Application appConfigHandler.BuildAsync().GetAwaiter().GetResult(); var commandConfigHandler = new BaseConfigurationHandler("CommandConfiguration"); commandConfigHandler.BuildAsync().GetAwaiter().GetResult(); - + + if (appConfigHandler.Configuration()?.MasterUrl == new Uri("http://api.raidmax.org:5000")) + { + appConfigHandler.Configuration().MasterUrl = new ApplicationConfiguration().MasterUrl; + } + var appConfig = appConfigHandler.Configuration(); var masterUri = Utilities.IsDevelopment ? new Uri("http://127.0.0.1:8080") diff --git a/SharedLibraryCore/Configuration/ApplicationConfiguration.cs b/SharedLibraryCore/Configuration/ApplicationConfiguration.cs index da052c9d8..4e5c9c169 100644 --- a/SharedLibraryCore/Configuration/ApplicationConfiguration.cs +++ b/SharedLibraryCore/Configuration/ApplicationConfiguration.cs @@ -206,7 +206,7 @@ namespace SharedLibraryCore.Configuration : ManualWebfrontUrl; [ConfigurationIgnore] public bool IgnoreServerConnectionLost { get; set; } - [ConfigurationIgnore] public Uri MasterUrl { get; set; } = new("http://api.raidmax.org:5000"); + [ConfigurationIgnore] public Uri MasterUrl { get; set; } = new("https://master.iw4.zip"); public IBaseConfiguration Generate() {