Passed webHost option to plugins as well

This commit is contained in:
Bram van der Veen 2015-10-06 08:31:33 +02:00
parent c79e2ff0ac
commit 3384a947f4

2
web.js
View file

@ -91,7 +91,7 @@ function plugins() {
for (plugin of pluginsDirectory) { for (plugin of pluginsDirectory) {
var app = __dirname + '/plugins/' + plugin + '/app.js'; var app = __dirname + '/plugins/' + plugin + '/app.js';
if (fs.existsSync(app)) { 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);
} }
} }
} }