From c90a7f30e1d5e2e66a735fcb891ffd0c8470063c Mon Sep 17 00:00:00 2001 From: mixelburg <52622705+mixelburg@users.noreply.github.com> Date: Thu, 19 Feb 2026 14:53:50 +0200 Subject: [PATCH] fix: show certificate expiry on status page for TCP monitors (#6984) Co-authored-by: Maks Pikov --- server/model/monitor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 7057745f4..bd773bfff 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -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;