mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 09:42:21 -04:00
Add option to set bind address
This commit is contained in:
parent
e210471c7a
commit
df2ebbf384
2 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ var helmet = require("helmet");
|
|||
var Server = function(config, callback) {
|
||||
console.log("Starting server op port " + config.port + " ... ");
|
||||
|
||||
server.listen(config.port);
|
||||
server.listen(config.port, config.address ? config.address : null);
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
var result = ipfilter(config.ipWhitelist, {mode: "allow", log: false})(req, res, function(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue