Domain Name Expiry Notification for https monitor only
This commit is contained in:
parent
30e113755e
commit
566133e350
|
@ -105,7 +105,7 @@ exports.mqttAsync = function (hostname, topic, okMessage, options = {}) {
|
||||||
log.debug("mqtt", "MQTT timeout triggered");
|
log.debug("mqtt", "MQTT timeout triggered");
|
||||||
client.end();
|
client.end();
|
||||||
reject("Timeout");
|
reject("Timeout");
|
||||||
}, interval * 1000);
|
}, interval * 1000 * 0.8);
|
||||||
|
|
||||||
log.debug("mqtt", "MQTT connecting");
|
log.debug("mqtt", "MQTT connecting");
|
||||||
|
|
||||||
|
@ -121,6 +121,8 @@ exports.mqttAsync = function (hostname, topic, okMessage, options = {}) {
|
||||||
try {
|
try {
|
||||||
client.subscribe(topic);
|
client.subscribe(topic);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
client.end();
|
||||||
|
clearTimeout(timeoutID);
|
||||||
reject(new Error("Cannot subscribe topic"));
|
reject(new Error("Cannot subscribe topic"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -172,7 +172,7 @@
|
||||||
|
|
||||||
<h2 v-if="monitor.type !== 'push'" class="mt-5 mb-2">{{ $t("Advanced") }}</h2>
|
<h2 v-if="monitor.type !== 'push'" class="mt-5 mb-2">{{ $t("Advanced") }}</h2>
|
||||||
|
|
||||||
<div class="my-3 form-check">
|
<div v-if="monitor.type === 'http' || monitor.type === 'keyword' " class="my-3 form-check">
|
||||||
<input id="expiry-notification" v-model="monitor.expiryNotification" class="form-check-input" type="checkbox">
|
<input id="expiry-notification" v-model="monitor.expiryNotification" class="form-check-input" type="checkbox">
|
||||||
<label class="form-check-label" for="expiry-notification">
|
<label class="form-check-label" for="expiry-notification">
|
||||||
{{ $t("Domain Name Expiry Notification") }}
|
{{ $t("Domain Name Expiry Notification") }}
|
||||||
|
|
Loading…
Reference in New Issue