summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-02-11 09:52:49 +0200
committerGitHub <noreply@github.com>2017-02-11 09:52:49 +0200
commit0934d7552cd29ab67723dd63382e50f619dafff1 (patch)
tree0482db7ca1d96eb257cb3d9c8eb2a54d35a78a3e
parent1834eff97a794cc15b56aa478a80e344d3662314 (diff)
parent52771816a03b9250a22a76af77c27704067d07c5 (diff)
Merge pull request #1000 from EricLuehrsen/luci_rt_con_cc1
luci: ignore '::1' in realtime connections
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_status/connections.htm3
-rw-r--r--modules/luci-mod-admin-full/src/luci-bwc.c4
2 files changed, 4 insertions, 3 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 0b2e52e05..b7ebc4145 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);
diff --git a/modules/luci-mod-admin-full/src/luci-bwc.c b/modules/luci-mod-admin-full/src/luci-bwc.c
index 63668d42b..8ddd91727 100644
--- a/modules/luci-mod-admin-full/src/luci-bwc.c
+++ b/modules/luci-mod-admin-full/src/luci-bwc.c
@@ -521,8 +521,8 @@ static int run_daemon(void)
if (strstr(line, "TIME_WAIT"))
continue;
- if (strstr(line, "src=127.0.0.1 ") &&
- strstr(line, "dst=127.0.0.1 "))
+ if ((strstr(line, "src=127.0.0.1 ") && strstr(line, "dst=127.0.0.1 "))
+ || (strstr(line, "src=::1 ") && strstr(line, "dst=::1 ")))
continue;
if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname))