mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-01-31 11:03:11 +08:00
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:
@@ -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})`;
|
||||
|
||||
Reference in New Issue
Block a user