re-add SNI support to guardianproject.info repo

Apparently, it uses SNI, but does not always fail without SNI support.
This commit is contained in:
Hans-Christoph Steiner 2016-03-21 11:45:20 +01:00
parent fd51fad73b
commit 35c2ef8c1c

View File

@ -114,8 +114,7 @@ public class HttpDownloader extends Downloader {
// workaround until NetCipher supports HTTPS SNI // workaround until NetCipher supports HTTPS SNI
// https://gitlab.com/fdroid/fdroidclient/issues/431 // https://gitlab.com/fdroid/fdroidclient/issues/431
if (connection instanceof HttpsURLConnection if (connection instanceof HttpsURLConnection
&& "f-droid.org".equals(sourceUrl.getHost()) && "f-droid.org".equals(sourceUrl.getHost())) {
&& "guardianproject.info".equals(sourceUrl.getHost())) {
((HttpsURLConnection) connection).setSSLSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory()); ((HttpsURLConnection) connection).setSSLSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory());
} }