mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 13:51:32 +08:00
Fix storing cloudflared token while start cloudflared
This commit is contained in:
@@ -37,6 +37,7 @@ module.exports.cloudflaredSocketHandler = (socket) => {
|
||||
try {
|
||||
checkLogin(socket);
|
||||
if (token && typeof token === "string") {
|
||||
await setSetting("cloudflaredTunnelToken", token);
|
||||
cloudflared.token = token;
|
||||
} else {
|
||||
cloudflared.token = null;
|
||||
|
Reference in New Issue
Block a user