feat: Domain name expiry (#6413)

Co-authored-by: AiroPi <47398145+AiroPi@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Shaan
2025-12-20 16:32:49 +00:00
committed by GitHub
co-authored by AiroPi Frank Elsinga
parent f3c76dbc6f
commit eb0b6cdb09
17 changed files with 926 additions and 14 deletions
+17
View File
@@ -843,6 +843,7 @@ let needSetup = false;
bean.invertKeyword = monitor.invertKeyword;
bean.ignoreTls = monitor.ignoreTls;
bean.expiryNotification = monitor.expiryNotification;
bean.domainExpiryNotification = monitor.domainExpiryNotification;
bean.upsideDown = monitor.upsideDown;
bean.packetSize = monitor.packetSize;
bean.maxredirects = monitor.maxredirects;
@@ -981,6 +982,22 @@ let needSetup = false;
}
});
socket.on("checkMointor", async (partial, callback) => {
try {
checkLogin(socket);
const DomainExpiry = require("./model/domain_expiry");
callback({
ok: true,
domain: (await DomainExpiry.forMonitor(partial))?.domain || null
});
} catch (e) {
callback({
ok: false,
msg: e.message,
});
}
});
socket.on("getMonitorBeats", async (monitorID, period, callback) => {
try {
checkLogin(socket);