etix / mirrorbits

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors.
MIT License
497 stars 90 forks source link

Redirect to a mirror that is unreachable due to local/remote rules #166

Open apolukhin opened 4 months ago

apolukhin commented 4 months ago

For example https://mirror.mariadb.org/repo/10.6/debian/sha256sums.txt?mirrorlist&fromip=2a03:d000:3006:1f20:82e6:3199:7f4f:f485

It redirects to fastmirror.pp.ua that is unreachable from the request IP.

Could you please provide an option to fallback to another mirror or to make fromip work on any request (so that the user could override its IP address info).

elboulangero commented 4 months ago

Alternatively: you can mark fastmirror.pp.ua as CountryOnly: true. Or you can edit the list of ExcludedCountryCodes for this mirror.

lazka commented 3 months ago

Related issue: #54

It would be nice if this could be set via the CLI though, so it can be automated like the rest (ideas there welcome!)