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