|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
const { checkLogin, setSetting, setting, doubleCheckPassword } = require("../util-server");
|
|
|
|
|
const { CloudflaredTunnel } = require("node-cloudflared-tunnel");
|
|
|
|
|
const { UptimeKumaServer } = require("../uptime-kuma-server");
|
|
|
|
|
const { log } = require("../../src/util");
|
|
|
|
|
const io = UptimeKumaServer.getInstance().io;
|
|
|
|
|
|
|
|
|
|
const prefix = "cloudflared_";
|
|
|
|
@ -107,7 +108,7 @@ module.exports.autoStart = async (token) => {
|
|
|
|
|
|
|
|
|
|
/** Stop cloudflared */
|
|
|
|
|
module.exports.stop = async () => {
|
|
|
|
|
console.log("Stop cloudflared");
|
|
|
|
|
log.info("cloudflared", "Stop cloudflared");
|
|
|
|
|
if (cloudflared) {
|
|
|
|
|
cloudflared.stop();
|
|
|
|
|
}
|
|
|
|
|