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:
parent
41ad7f1818
commit
5640ee094d
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue