Merge branch 'stable-v0.99' into 'stable-v0.99'
re-add SNI support to guardianproject.info repo Apparently, it uses SNI, but does not always fail without SNI support. See merge request !230
This commit is contained in:
commit
1870256803
@ -113,8 +113,7 @@ public class HttpDownloader extends Downloader {
|
||||
// workaround until NetCipher supports HTTPS SNI
|
||||
// https://gitlab.com/fdroid/fdroidclient/issues/431
|
||||
if (connection instanceof HttpsURLConnection
|
||||
&& !TextUtils.equals(sourceUrl.getHost(), "f-droid.org")
|
||||
&& !TextUtils.equals(sourceUrl.getHost(), "guardianproject.info")) {
|
||||
&& !TextUtils.equals(sourceUrl.getHost(), "f-droid.org")) {
|
||||
((HttpsURLConnection) connection).setSSLSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user