Merge pull request #972 from roramirez/add-warning-color-full-ip

Add warning color when are using full ip whitelist
This commit is contained in:
Michael Teeuw 2017-08-10 12:11:51 +02:00 committed by GitHub
commit cd5623b348
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Changed 'default.js' - listen on all attached interfaces by default.
- Add execution of `npm list` after the test are ran in Travis CI.
- Change hooks for the vendors e2e tests.
- Add warning color when are using full ip whitelist.
### Fixed
- Fixed issue with incorrect allignment of analog clock when displayed in the center column of the MM.

View File

@ -13,6 +13,7 @@ var path = require("path");
var ipfilter = require("express-ipfilter").IpFilter;
var fs = require("fs");
var helmet = require("helmet");
var Utils = require(__dirname + "/utils.js");
var Server = function(config, callback) {
@ -26,7 +27,7 @@ var Server = function(config, callback) {
server.listen(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")
console.info(Utils.colors.warn("You're using a full whitelist configuration to allow for all IPs"))
}
app.use(function(req, res, next) {