Fix storing cloudflared token while start cloudflared

pull/1442/head
Louis Lam 3 years ago
parent f02e9c44ec
commit 6674005e8b

@ -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;

Loading…
Cancel
Save