mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add IP listening option
This commit is contained in:
@@ -25,7 +25,7 @@ const whitelist = config.whitelist;
|
||||
const whitelistMode = config.whitelistMode;
|
||||
const autorun = config.autorun;
|
||||
const enableExtensions = config.enableExtensions;
|
||||
|
||||
const listen = config.listen;
|
||||
|
||||
var Client = require('node-rest-client').Client;
|
||||
var client = new Client();
|
||||
@@ -1536,7 +1536,7 @@ function getAsync(url, args) {
|
||||
}
|
||||
// ** END **
|
||||
|
||||
app.listen(server_port, function () {
|
||||
app.listen(server_port, (listen ? '0.0.0.0' : '127.0.0.1'), function () {
|
||||
if (process.env.colab !== undefined) {
|
||||
if (process.env.colab == 2) {
|
||||
is_colab = true;
|
||||
|
Reference in New Issue
Block a user