From 5ccf053cba9adbc24a93fd76e95c99a460a037d0 Mon Sep 17 00:00:00 2001 From: Doug Kline Date: Sat, 1 Apr 2017 17:23:24 -0400 Subject: [PATCH] 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,