Skip to content

Commit

Permalink
[#1936] Enable TLS 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zuhdil committed May 25, 2023
1 parent 46d3bf0 commit 11dd32c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Locale;
import java.util.TimeZone;
import java.util.concurrent.TimeUnit;
Expand All @@ -95,6 +96,7 @@
import dagger.Module;
import dagger.Provides;
import io.reactivex.schedulers.Schedulers;
import okhttp3.ConnectionSpec;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;

Expand Down Expand Up @@ -335,6 +337,7 @@ private OkHttpClient.Builder createHttpClient(
httpClient.addInterceptor(loggingInterceptor);
httpClient.connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS);
httpClient.readTimeout(NO_TIMEOUT, TimeUnit.SECONDS);
httpClient.connectionSpecs(Arrays.asList(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS, ConnectionSpec.CLEARTEXT));
return httpClient;
}
}

0 comments on commit 11dd32c

Please sign in to comment.