diff options
-rw-r--r-- | modules/admin-full/luasrc/view/admin_status/connections.htm | 6 | ||||
-rw-r--r-- | modules/admin-full/src/luci-bwc.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/connections.htm b/modules/admin-full/luasrc/view/admin_status/connections.htm index 9c9eb01c9..6525391aa 100644 --- a/modules/admin-full/luasrc/view/admin_status/connections.htm +++ b/modules/admin-full/luasrc/view/admin_status/connections.htm @@ -8,8 +8,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -$Id$ - -%> <%+header%> @@ -161,6 +159,10 @@ $Id$ for (var i = 0; i < conn.length; i++) { var c = conn[i]; + + if (c.src == '127.0.0.1' && c.dst == '127.0.0.1') + continue; + var tr = conn_table.rows[0].parentNode.insertRow(-1); tr.className = 'cbi-section-table-row cbi-rowstyle-' + (1 + (i % 2)); diff --git a/modules/admin-full/src/luci-bwc.c b/modules/admin-full/src/luci-bwc.c index 52e25e6f7..1a4f510d7 100644 --- a/modules/admin-full/src/luci-bwc.c +++ b/modules/admin-full/src/luci-bwc.c @@ -536,6 +536,10 @@ 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 ")) + continue; + if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname)) { if (!strcmp(ifname, "tcp")) |