Closed adrianreber closed 8 years ago
:+1: for me
Looks great! as a aside, we should likely ask mirrors to add more https links before we advertise this feaure. Or perhaps even scan all mirrors with http:// links and see how many support https and auto add those.
Yes, scanning for https URLs should be possible and also easier than the ftp URLs removal.
I scanned all http URLs and replaced 'http' with 'https' and added the result to the database. This increased the number of https URLs from 24 to 112. We have 920 http URLs in the database.
The metalink will start to redirect users to http and https URLs so people will be hitting more https mirrors in about 30 minutes.
I have not verified that the content provided via the same https URL is the same as the content from the http URL.
This adds the option specify the desired protocol of the mirrorlist/metalink as described in #100
The code is currently running in staging and the result can be seen at:
http://mirrors.stg.fedoraproject.org/mirrorlist?repo=rawhide&arch=x86_64&country=jp&protocol=rsync http://mirrors.stg.fedoraproject.org/mirrorlist?repo=rawhide&arch=x86_64&country=jp&protocol=ftp http://mirrors.stg.fedoraproject.org/metalink?repo=rawhide&arch=x86_64&country=gb&protocol=https http://mirrors.stg.fedoraproject.org/metalink?repo=rawhide&arch=x86_64&country=gb&protocol=rsync