From 6674005e8b839e378e781ad60046f0d43a71d8bf Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 31 Mar 2022 15:58:39 +0800 Subject: [PATCH] Fix storing cloudflared token while start cloudflared --- server/socket-handlers/cloudflared-socket-handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/socket-handlers/cloudflared-socket-handler.js b/server/socket-handlers/cloudflared-socket-handler.js index 3f4a26e53..3d65cda5b 100644 --- a/server/socket-handlers/cloudflared-socket-handler.js +++ b/server/socket-handlers/cloudflared-socket-handler.js @@ -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;