X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fpakfire%2Flib%2Ffunctions.pl;fp=src%2Fpakfire%2Flib%2Ffunctions.pl;h=61787757eb5e46bcb22996a135161fc667845601;hp=460eaf303c383721e535c11e02200a920329fc70;hb=c846ed161682adfd7a9939d7778ce28b6f677d71;hpb=f93238725f2f73975dff1a2c67820d9480a100e6 diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index 460eaf303c..61787757eb 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -144,7 +144,7 @@ sub fetchfile { $file = $getfile; } - $proto = "HTTP" unless $proto; + $proto = "HTTPS" unless $proto; logger("DOWNLOAD INFO: Host: $host ($proto) - File: $file"); @@ -318,7 +318,7 @@ sub selectmirror { if ($scount eq 0) { logger("MIRROR INFO: Could not find any servers. Falling back to main server $Conf::mainserver"); - return ("HTTP", $Conf::mainserver, "/$Conf::version"); + return ("HTTPS", $Conf::mainserver, "/$Conf::version"); } ### Choose a random server and test if it is online