Add IP listening option

This commit is contained in:
10sa
2023-03-17 19:30:28 +09:00
parent a894036d34
commit bdd2708f89
2 changed files with 4 additions and 3 deletions

View File

@@ -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;