fix bug with enabling NetCipher on the wrong domains breaks SNI
I messed this up in f2621dcb558b12a4430b6301b4af4a824d57eb6d fixes #629 https://gitlab.com/fdroid/fdroidclient/issues/629
This commit is contained in:
parent
d73dac73ad
commit
c66b6c52b7
@ -120,7 +120,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())) {
|
||||||
((HttpsURLConnection) connection).setSSLSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory());
|
((HttpsURLConnection) connection).setSSLSocketFactory(HttpsURLConnection.getDefaultSSLSocketFactory());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user