From 415199f2a25bfcad46e913fd976483bb70752f97 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Sat, 30 Dec 2023 19:34:45 +0100 Subject: [PATCH] When linking iso downloads, only use https mirrors --- public/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/views.py b/public/views.py index fe99fb6f..e2cd0c10 100644 --- a/public/views.py +++ b/public/views.py @@ -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)