Address first round of review comments

This commit is contained in:
Torsten Grote committed 2022-02-16 09:43:19 -03:00
1 parent 155257d901
commit 82b131ff71
3 files changed
+10 -4

No files matched your search

@@ -38,18 +38,19 @@ public class HttpDownloaderTest {
// https://developer.android.com/reference/javax/net/ssl/SSLContext
static {
ArrayList<Pair<String, String>> tempUrls = new ArrayList<>(Arrays.asList(
new Pair<>("https://f-droid.org/repo/", "index-v1.jar"),
new Pair<>("https://f-droid.org/repo", "index-v1.jar"),
// sites that use SNI for HTTPS
new Pair<>("https://mirrors.edge.kernel.org/", "debian/dists/stable/Release"),
new Pair<>("https://fdroid.tetaneutral.net/fdroid/repo/", "index-v1.jar"),
new Pair<>("https://ftp.fau.de/fdroid/repo/", "index-v1.jar"),
new Pair<>("https://ftp.fau.de/fdroid/repo", "dev.lonami.klooni/en-US/phoneScreenshots/1-game.jpg"),
//new Pair<>("https://microg.org/fdroid/repo/index-v1.jar"),
//new Pair<>("https://grobox.de/fdroid/repo/index.jar"),
new Pair<>("https://guardianproject.info/fdroid/repo/", "index-v1.jar")
new Pair<>("https://guardianproject.info/fdroid/repo", "index-v1.jar")
));
if (Build.VERSION.SDK_INT >= 22) {
tempUrls.addAll(Arrays.asList(
new Pair<>("https://en.wikipedia.org/wiki/", "Index.html"), // no SNI but weird ipv6 lookup issues
new Pair<>("https://en.wikipedia.org", "/wiki/Index.html"), // no SNI but weird ipv6 lookup issues
new Pair<>("https://mirror.cyberbits.eu/fdroid/repo/", "index-v1.jar") // TLSv1.2 only and SNI
));
}