Skip to content

Commit

Permalink
When linking iso downloads, only use https mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Dec 30, 2023
1 parent fca3ff5 commit 415199f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _mirror_urls():
'''In order to ensure this is lazily evaluated since we can't do
sorting at the database level, make it a callable.'''
urls = MirrorUrl.objects.select_related('mirror').filter(
active=True, protocol__default=True,
active=True, protocol__protocol='https',
mirror__public=True, mirror__active=True, mirror__isos=True)
sort_by = attrgetter('country.name', 'mirror.name')
return sorted(urls, key=sort_by)
Expand Down

0 comments on commit 415199f

Please sign in to comment.