]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/init.cc
close server if parsing of header field failed
[apt.git] / apt-pkg / init.cc
index a41d604d31d74e8854720e8a7915db67f0bccd8d..70a119a6efd1064ce81a310fe8ca0ef7a062fb7c 100644 (file)
@@ -86,10 +86,8 @@ bool pkgInitConfig(Configuration &Cnf)
    Cnf.Set("Dir::Ignore-Files-Silently::", "\\.distUpgrade$");
 
    // Repository security
-   // FIXME: this is set to "true" for backward compatibility, once
-   //        jessie is out we want to change this to "false" to
-   //        improve security
-   Cnf.CndSet("Acquire::AllowInsecureRepositories", true);
+   Cnf.CndSet("Acquire::AllowInsecureRepositories", false);
+   Cnf.CndSet("Acquire::AllowWeakRepositories", false);
    Cnf.CndSet("Acquire::AllowDowngradeToInsecureRepositories", false);
 
    // Default cdrom mount point