Revert autorun URL opening on 0.0.0.0

This commit is contained in:
SillyLossy
2023-04-22 23:56:56 +03:00
parent 20801f8603
commit 4fd5d90e70

View File

@ -2378,6 +2378,12 @@ const tavernUrl = new URL(
(':' + server_port)
);
const autorunUrl = new URL(
(cliArguments.ssl ? 'https://' : 'http://') +
('127.0.0.1') +
(':' + server_port)
);
const setupTasks = async function () {
ensurePublicDirectoriesExist();
await ensureThumbnailCache();
@ -2387,8 +2393,8 @@ const setupTasks = async function () {
console.log('Launching...');
if (autorun) open(tavernUrl.toString());
console.log('SillyTavern started: ' + tavernUrl);
if (autorun) open(autorunUrl.toString());
console.log('SillyTavern is listening on: ' + tavernUrl);
if (fs.existsSync('public/characters/update.txt') && !is_colab) {
convertStage1();