Put ssl socket factory back in

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-10-29 11:32:24 +01:00
parent fb5107124d
commit f571244e62

View File

@ -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);