Add security override config

This commit is contained in:
10sa
2023-05-19 21:39:48 +09:00
parent da76933c95
commit 6f8ba8fd69
2 changed files with 12 additions and 2 deletions

View File

@ -2715,8 +2715,12 @@ const setupTasks = async function () {
}
if (listen && !config.whitelistMode && !config.basicAuthMode) {
console.error('Your SillyTavern is currently unsecurely open to the public. Enable whitelisting or basic authentication.');
process.exit(1);
if (config.securityOverride)
console.warn("Security has been override. If it's not a trusted network, change the settings.");
else {
console.error('Your SillyTavern is currently unsecurely open to the public. Enable whitelisting or basic authentication.');
process.exit(1);
}
}
if (true === cliArguments.ssl)