Skip to content

Commit fd95b42

Browse files
committed
fix(server): name more TLS verification codes for peer links
1 parent ce9210e commit fd95b42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/server/src/peer/PeerLinks.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ const certificateErrorCode = (error: unknown) => {
5151
if (
5252
Predicate.hasProperty(current, "code") &&
5353
typeof current.code === "string" &&
54-
/CERT|SELF_SIGNED|UNABLE_TO_(GET|VERIFY)/.test(current.code)
54+
/CERT|SELF_SIGNED|UNABLE_TO_(GET|VERIFY)|INVALID_(CA|PURPOSE)|PATH_LENGTH_EXCEEDED|HOSTNAME_MISMATCH/.test(
55+
current.code,
56+
)
5557
)
5658
return current.code;
5759
current = Predicate.hasProperty(current, "cause") ? current.cause : undefined;

0 commit comments

Comments
 (0)