summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc
diff options
context:
space:
mode:
authorEric Luehrsen <ericluehrsen@hotmail.com>2017-02-10 21:38:00 -0500
committerEric Luehrsen <ericluehrsen@hotmail.com>2017-02-10 21:38:25 -0500
commit52771816a03b9250a22a76af77c27704067d07c5 (patch)
tree0482db7ca1d96eb257cb3d9c8eb2a54d35a78a3e /modules/luci-mod-admin-full/luasrc
parent1834eff97a794cc15b56aa478a80e344d3662314 (diff)
luci: ignore '::1' in realtime connections
luci ignores only 127.0.0.1 in real time connections. The dnsmasq.init script sets up resolv.conf(s) as such. With alternate DNS servers configured 'localhost' will resolve to '127.0.0.1' or '::1'. The connections graph will spam itself. openwrt/luci#996 Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_status/connections.htm3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/connections.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/connections.htm
index 0b2e52e059..b7ebc41451 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_status/connections.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/connections.htm
@@ -153,7 +153,8 @@
{
var c = conn[i];
- if (c.src == '127.0.0.1' && c.dst == '127.0.0.1')
+ if ((c.src == '127.0.0.1' && c.dst == '127.0.0.1')
+ || (c.src == '::1' && c.dst == '::1'))
continue;
var tr = conn_table.rows[0].parentNode.insertRow(-1);