mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-19 13:41:26 +00:00
Put ssl socket factory back in
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
fb5107124d
commit
f571244e62
@ -51,6 +51,7 @@ import okhttp3.OkHttpClient;
|
||||
import okhttp3.Request;
|
||||
import okhttp3.Response;
|
||||
import okhttp3.Route;
|
||||
import okhttp3.internal.tls.OkHostnameVerifier;
|
||||
import okhttp3.logging.HttpLoggingInterceptor;
|
||||
import retrofit2.Retrofit;
|
||||
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
|
||||
@ -123,8 +124,8 @@ public class RestModule {
|
||||
httpClient.addInterceptor(loggingInterceptor);
|
||||
}
|
||||
|
||||
//httpClient.sslSocketFactory(sslSocketFactoryCompat, magicTrustManager);
|
||||
//httpClient.hostnameVerifier(OkHostnameVerifier.INSTANCE);
|
||||
httpClient.sslSocketFactory(sslSocketFactoryCompat, magicTrustManager);
|
||||
httpClient.hostnameVerifier(OkHostnameVerifier.INSTANCE);
|
||||
|
||||
if (!Proxy.NO_PROXY.equals(proxy)) {
|
||||
httpClient.proxy(proxy);
|
||||
|
Loading…
Reference in New Issue
Block a user