fix(mobile): blad certyfikatu to nie usuniety film

"Trust anchor for certification path not found" lapal sie na "not found", wiec
odtworzenia eporner z bledem SSL szly jako "gone" (93 w tydzien): zly komunikat i zla
telemetria. Wejdzie z najblizsza paczka OTA.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
goon-foss 2026-09-19 22:30:35 +02:00
parent 41ad7f1818
commit 5640ee094d

View file

@ -106,6 +106,10 @@ function useMarkSourceBroken(params: RouteParams) {
// 403 NIE liczy się (auth/IP-bound → fallback proxy/WebView może uratować). // 403 NIE liczy się (auth/IP-bound → fallback proxy/WebView może uratować).
function isGoneError(msg: string | undefined | null): boolean { function isGoneError(msg: string | undefined | null): boolean {
if (!msg) return false; if (!msg) return false;
// Blad certyfikatu to nie usuniety film. "Trust anchor for certification path not found"
// lapal sie na "not found", wiec 93 odtworzenia eporner w tydzien (CDN z GlobalSign R6,
// ktorego starsze Androidy nie znaja) szly jako "gone": zly komunikat i zla telemetria.
if (/SSLHandshake|CertPathValidator|Trust anchor|certificate/i.test(msg)) return false;
return /\b(404|410)\b|response code:\s*4(0[14])|not found|gone/i.test(msg); return /\b(404|410)\b|response code:\s*4(0[14])|not found|gone/i.test(msg);
} }