mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Add information message when the ipWhitelist is configurate with []
This commit is contained in:
parent
989ee0e281
commit
1bdc46969c
@ -19,6 +19,10 @@ var Server = function(config, callback) {
|
||||
|
||||
server.listen(config.port, config.address ? config.address : null);
|
||||
|
||||
if (config.ipWhitelist instanceof Array && config.ipWhitelist.length == 0) {
|
||||
console.info("You're using a full whitelist configuration to allow for all IPs")
|
||||
}
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
var result = ipfilter(config.ipWhitelist, {mode: "allow", log: false})(req, res, function(err) {
|
||||
if (err === undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user