docs: add comment clarifying translatability of TLS error messages
Error messages could be translated, but TLS alert names (e.g., certificate_required) are from RFC 8446 spec and should remain in English for consistency.
This commit is contained in:
parent
dc1e96f7d1
commit
56d51bcf82
@ -314,6 +314,8 @@ class TCPMonitorType extends MonitorType {
|
||||
}
|
||||
|
||||
// Check if we got the expected alert
|
||||
// Note: Error messages below could be translated, but alert names (e.g., certificate_required)
|
||||
// are from RFC 8446 spec and should remain in English for consistency with the spec.
|
||||
if (result.alertName === expectedTlsAlert) {
|
||||
heartbeat.status = UP;
|
||||
heartbeat.msg = `TLS alert received as expected: ${result.alertName} (${result.alertNumber})`;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user