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:
parent
fd51fad73b
commit
35c2ef8c1c
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user