]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/pakfire/lib/functions.pl
pakfire: use HTTPS if no protocol is specified
[people/pmueller/ipfire-2.x.git] / src / pakfire / lib / functions.pl
index 460eaf303c383721e535c11e02200a920329fc70..61787757eb5e46bcb22996a135161fc667845601 100644 (file)
@@ -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