Skip to content

Commit

Permalink
Issues #562,#561,#560:
Browse files Browse the repository at this point in the history
- No source of entropy in _get_nearest_mirrors_by_network_data()
- _get_nearest_mirrors_by_network_data() fails to exclude near-by private mirrors for extra options.
- Exclude the private mirrors from the mirrors list in the case of fallback behavior

The Azure mirrors have allowed list of arches
  • Loading branch information
soksanichenko committed Jul 1, 2022
1 parent dfb92ae commit b715adb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backend/api/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ def _is_additional_mirrors_suitable(
mirrors=sorted_additional_mirrors,
country=country,
)[:LENGTH_CLOUD_MIRRORS_LIST - len(suitable_mirrors)]
suitable_mirrors.extend(
mirror['mirror'] for mirror in randomized_additional_mirrors
)
suitable_mirrors.extend(randomized_additional_mirrors)
return suitable_mirrors


Expand Down

0 comments on commit b715adb

Please sign in to comment.