Skip to content
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

Feature: Version Checks, Rules #3

Merged
merged 8 commits into from
Jan 28, 2024
Merged

Conversation

tystuyfzand
Copy link
Contributor

Adds a basic Rule system and Version checks.

When mirrors have a .control file, this check will compare it to the master check url (usually imola.armbian.com) and verify that they are up to date. This is VERY useful when releasing updates to ensure that only up-to-date mirrors are served.

With Rules, you can avoid issues that may arise with ISPs having a bad connection, or blocking others completely. Filtering can be done on IP, ASN, Continent, Country, and more, either as a singular check or an in or not in check.

tystuyfzand and others added 8 commits January 7, 2023 10:15
Resolves version check issues, adds more information,
adds in Rule system to exclude hosts, upgrades to Go 1.20
- Adds JSON map file support
- Clears cache on server state change (prevents no servers being available)
- Improves speed of GetValue using generated getters
- Moves maxminddb items into db package
- Moves util.go into util package
- Updates dependencies
- Fix compile errors not found by prechecks
- Corrects format of JSON by adding assets parent
- Fixes FileURL variable to map to the proper field
- Adds basic unit test for JSON loading
Improve checks and rule speed, add JSON support
@igorpecovnik igorpecovnik merged commit 2048c14 into master Jan 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants