Merge branch 'master' into feature/#1221-clickable-hostaname-on-status-page

This commit is contained in:
Matthew Nickson
2022-06-18 23:53:35 +01:00
committed by GitHub
92 changed files with 3655 additions and 552 deletions

View File

@@ -63,7 +63,10 @@ module.exports.cloudflaredSocketHandler = (socket) => {
socket.on(prefix + "stop", async (currentPassword, callback) => {
try {
checkLogin(socket);
await doubleCheckPassword(socket, currentPassword);
const disabledAuth = await setting("disableAuth");
if (!disabledAuth) {
await doubleCheckPassword(socket, currentPassword);
}
cloudflared.stop();
} catch (error) {
callback({