From 765b03c86897806051c5b56a48ffe5f71a03c958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Tue, 25 Jul 2017 11:26:01 -0400 Subject: [PATCH 1/2] Add warning color when are using full ip whitelist --- js/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/server.js b/js/server.js index 78aac2fe..fbc51cbc 100644 --- a/js/server.js +++ b/js/server.js @@ -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) { From 6abd120a5cccb09219be17694306ef0b7c30c196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Fri, 4 Aug 2017 22:39:52 -0400 Subject: [PATCH 2/2] Add CHANGELOG entry for color in warning if full ip whitelist --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f762dbe..b3cbb733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,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.