fix: show certificate expiry on status page for TCP monitors (#6984)

Co-authored-by: Maks Pikov <mixelburg@users.noreply.github.com>
This commit is contained in:
mixelburg
2026-02-19 14:53:50 +02:00
committed by GitHub
parent 41e75ddd6e
commit c90a7f30e1

View File

@@ -98,11 +98,7 @@ class Monitor extends BeanModel {
obj.tags = await this.getTags();
}
if (
certExpiry &&
(this.type === "http" || this.type === "keyword" || this.type === "json-query") &&
this.getURLProtocol() === "https:"
) {
if (certExpiry) {
const { certExpiryDaysRemaining, validCert } = await this.getCertExpiry(this.id);
obj.certExpiryDaysRemaining = certExpiryDaysRemaining;
obj.validCert = validCert;