From 5ccf053cba9adbc24a93fd76e95c99a460a037d0 Mon Sep 17 00:00:00 2001 From: Doug Kline Date: Sat, 1 Apr 2017 17:23:24 -0400 Subject: [PATCH 1/2] TL;RL cheat notes for IPv4 ipWhitelist Hopefully save a google or support request -- while still using IPv4 addresses on MagicMirror network, need to set full address by using ::ffff: as prefix to IP in config. e.g. ::ffff:192.168.5.1 and not 192.168.5.1 --- config/config.js.sample | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/config.js.sample b/config/config.js.sample index 53677cfa..e07c2c75 100644 --- a/config/config.js.sample +++ b/config/config.js.sample @@ -6,7 +6,12 @@ var config = { port: 8080, - ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses. + ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses + // or add a specific IPv4 of 192.168.1.5 : + // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], + // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : + // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], + language: "en", timeFormat: 24, From 4a70e3cd319143c15efccea6bf40a83a8b1d5969 Mon Sep 17 00:00:00 2001 From: Doug Kline Date: Sat, 1 Apr 2017 18:54:28 -0400 Subject: [PATCH 2/2] Update config.js.sample --- config/config.js.sample | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config.js.sample b/config/config.js.sample index e07c2c75..9b8787bb 100644 --- a/config/config.js.sample +++ b/config/config.js.sample @@ -6,12 +6,11 @@ var config = { port: 8080, - ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses + ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], - language: "en", timeFormat: 24,