From 126afefd7728fac1924a3903966c63483eb412bc Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 3 Dec 2026 11:30:03 -0500 Subject: [PATCH] Revert the deliberate break (#8316) Run 11391 went red on exactly the certificate case (414 passed, 1 failed): with trust failures unrecognised, the probe fell back to http. Co-Authored-By: Claude Opus 5.5 --- .../src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt b/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt index 87c53724..57d4d881 100644 --- a/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt +++ b/android/app/src/main/java/com/fabledsword/minstrel/auth/ServerProbe.kt @@ -15,6 +15,7 @@ import okhttp3.Request import okhttp3.Response import java.io.IOException import java.net.UnknownHostException +import java.security.GeneralSecurityException import java.util.concurrent.TimeUnit import javax.inject.Inject import javax.net.ssl.SSLPeerUnverifiedException @@ -153,7 +154,7 @@ class ServerProbe internal constructor(client: OkHttpClient, callTimeoutMillis: private fun isCertificateFailure(e: IOException): Boolean = generateSequence(e) { it.cause } .take(MAX_CAUSE_DEPTH) - .any { it is SSLPeerUnverifiedException } + .any { it is SSLPeerUnverifiedException || it is GeneralSecurityException } private suspend fun Call.await(): Response = suspendCancellableCoroutine { continuation ->