Warn user when no whitelist or auth method is chosen

And the server is publicly available
This commit is contained in:
maver
2023-04-23 18:11:28 +02:00
parent c821b1fba4
commit 8be863b50b

View File

@ -2398,6 +2398,10 @@ const setupTasks = async function () {
if (autorun) open(autorunUrl.toString());
console.log('SillyTavern is listening on: ' + tavernUrl);
if (listen &&
!config.whitelistMode &&
!config.basicAuthMode)
console.log('Your SillyTavern is currently open to the public. To increase security, consider enabling whitelisting or basic authentication.')
if (fs.existsSync('public/characters/update.txt') && !is_colab) {
convertStage1();