Remove message redundancy

dbbf069e85efc8c3e5df005f06aeb8c046c12c64

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +5 -12Ignore whitespace
server.js+5 -12
@@ -852,22 +852,15 @@ const postSetupTasks = async function (v6Failed, v4Failed, useIPv6, useIPv4) {
852852 const plainGoToLog = removeColorFormatting(goToLog);
853853
854854 console.log(logListen);
855+ if (listen) {
856+ console.log();
857+ console.log('To limit connections to internal localhost only ([::1] or 127.0.0.1), change the setting in config.yaml to "listen: false".');
858+ console.log('Check the "access.log" file in the SillyTavern directory to inspect incoming connections.');
859+ }
855860 console.log('\n' + getSeparator(plainGoToLog.length) + '\n');
856861 console.log(goToLog);
857862 console.log('\n' + getSeparator(plainGoToLog.length) + '\n');
858863
859- if (listen) {
860- const logAddress = ipRegex.v6({ exact: true }).test(listenAddressIPv6)
861- ? listenAddressIPv6
862- : ipRegex.v4({ exact: true }).test(listenAddressIPv4)
863- ? listenAddressIPv4
864- : null;
865- console.log(
866- logAddress
867- ? `SillyTavern is listening on the address ${logAddress}. If you want to limit it only to internal localhost ([::1] or 127.0.0.1), change the setting in config.yaml to "listen: false". Check "access.log" file in the SillyTavern directory if you want to inspect incoming connections.\n`
868- : '[::] or 0.0.0.0 means SillyTavern is listening on all network interfaces (Wi-Fi, LAN, localhost). If you want to limit it only to internal localhost ([::1] or 127.0.0.1), change the setting in config.yaml to "listen: false". Check "access.log" file in the SillyTavern directory if you want to inspect incoming connections.\n',
869- );
870- }
871864
872865 if (basicAuthMode) {
873866 if (perUserBasicAuth && !enableAccounts) {