Skip to content

Commit

Permalink
update default master url
Browse files Browse the repository at this point in the history
  • Loading branch information
RaidMax committed Sep 2, 2023
1 parent e195668 commit 2ea43fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Application/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,12 @@ private static void ConfigureServices(IServiceCollection serviceCollection)
appConfigHandler.BuildAsync().GetAwaiter().GetResult();
var commandConfigHandler = new BaseConfigurationHandler<CommandConfiguration>("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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public class ApplicationConfiguration : IBaseConfiguration
: 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()
{
Expand Down

0 comments on commit 2ea43fd

Please sign in to comment.