Passed webHost option to plugins as well
This commit is contained in:
parent
c79e2ff0ac
commit
3384a947f4
2
web.js
2
web.js
|
@ -91,7 +91,7 @@ function plugins() {
|
|||
for (plugin of pluginsDirectory) {
|
||||
var app = __dirname + '/plugins/' + plugin + '/app.js';
|
||||
if (fs.existsSync(app)) {
|
||||
var app = require(app)(config().webPort + (1 + pluginsDirectory.indexOf(plugin)));
|
||||
var app = require(app)(config().webPort + (1 + pluginsDirectory.indexOf(plugin)), config().webHost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue