Skip to content

Commit

Permalink
Print GitHub API Address at start
Browse files Browse the repository at this point in the history
  • Loading branch information
0blu committed Nov 13, 2023
1 parent d74d6d0 commit 519185b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WinterspringLauncher/LauncherLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public LauncherLogic(MainWindowViewModel model)
_config.GitHubApiMirror = LocaleDefaults.GetBestGitHubMirror();
}

if (_config.GitHubApiMirror != null)
if (!string.IsNullOrWhiteSpace(_config.GitHubApiMirror))
GitHubApi.GitHubApiAddress = _config.GitHubApiMirror;

for (var i = 0; i < _config.KnownServers.Length; i++)
Expand All @@ -53,6 +53,7 @@ public LauncherLogic(MainWindowViewModel model)

_model.AddLogEntry($"Launcher started");
_model.AddLogEntry($"Base path: \"{FullPath(".")}\"");
_model.AddLogEntry($"GitHub API Address: {GitHubApi.GitHubApiAddress}");

string? localHermesVersion = null;
var hermesProxyVersionFile = Path.Combine(_config.HermesProxyLocation, "version.txt");
Expand Down

0 comments on commit 519185b

Please sign in to comment.