When linking iso downloads, only use https mirrors
This commit is contained in:
parent
15a529f2c6
commit
66ac300dc8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user