| 852 | 852 | const plainGoToLog = removeColorFormatting(goToLog); |
| 853 | 853 | |
| 854 | 854 | 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 | + } |
| 855 | 860 | console.log('\n' + getSeparator(plainGoToLog.length) + '\n'); |
| 856 | 861 | console.log(goToLog); |
| 857 | 862 | console.log('\n' + getSeparator(plainGoToLog.length) + '\n'); |
| 858 | 863 | |
| 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 | | - } |
| 871 | 864 | |
| 872 | 865 | if (basicAuthMode) { |
| 873 | 866 | if (perUserBasicAuth && !enableAccounts) { |