-
Notifications
You must be signed in to change notification settings - Fork 97
Add a "database mirror" option for people that cannot access maddie480.ovh #1019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
DashingCat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with adding this option, but I believe adding logging could be useful to check from the log file if the database mirror was enabled or not.
| private static readonly object _getUpdaterURLLock = new object(); | ||
|
|
||
| private static string GetEverestUpdaterDatabaseURL() { | ||
| if (CoreModule.Settings.UseAPIMirror) return "https://everestapi.github.io/updatermirror/everest_versions.json"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (CoreModule.Settings.UseAPIMirror) return "https://everestapi.github.io/updatermirror/everest_versions.json"; | |
| if (CoreModule.Settings.UseAPIMirror) { | |
| Logger.Info("updater", "Using API mirror to get Everest Updater database URL"); | |
| return "https://everestapi.github.io/updatermirror/everest_versions.json"; | |
| } |
1160da7 to
a8613a7
Compare
Wartori54
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor logging change, other than that LGTM.
|
The pull request was approved and entered the 3-day last-call window. |
Co-authored-by: Wartori <72220838+Wartori54@users.noreply.github.com>
677be85 to
6b8929a
Compare
|
The last-call window for this pull request ended. It can now be merged if no blockers were brought up. |
Apparently, Russians (or at least some of them) can't access my website anymore or something? So, here is a new option to get the mod updater database straight from everestapi.github.io. It is updated as frequently as the actual one at maddie480.ovh.