[App] Disable TLSv1.3 requirement for SSLProvider.

This commit is contained in:
Kuba Szczodrzyński 2021-03-25 13:19:52 +01:00
parent ae6af77aef
commit 4045da7fc5

View File

@ -190,12 +190,18 @@ class App : MultiDexApplication(), Configuration.Provider, CoroutineScope {
withContext(Dispatchers.Default) { withContext(Dispatchers.Default) {
config.migrate(this@App) config.migrate(this@App)
SSLProvider.install(applicationContext, downloadIfNeeded = true, supportTls13 = true, onFinish = { SSLProvider.install(
applicationContext,
downloadIfNeeded = true,
supportTls13 = false,
onFinish = {
buildHttp() buildHttp()
}, onError = { },
onError = {
Timber.e("Failed to install SSLProvider: $it") Timber.e("Failed to install SSLProvider: $it")
it.printStackTrace() it.printStackTrace()
}) }
)
if (config.devModePassword != null) if (config.devModePassword != null)
checkDevModePassword() checkDevModePassword()