Merge pull request #1000 from EricLuehrsen/luci_rt_con_cc1
luci: ignore '::1' in realtime connections
This commit is contained in:
commit
0934d7552c
2 changed files with 4 additions and 3 deletions
|
@ -153,7 +153,8 @@
|
||||||
{
|
{
|
||||||
var c = conn[i];
|
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;
|
continue;
|
||||||
|
|
||||||
var tr = conn_table.rows[0].parentNode.insertRow(-1);
|
var tr = conn_table.rows[0].parentNode.insertRow(-1);
|
||||||
|
|
|
@ -521,8 +521,8 @@ static int run_daemon(void)
|
||||||
if (strstr(line, "TIME_WAIT"))
|
if (strstr(line, "TIME_WAIT"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strstr(line, "src=127.0.0.1 ") &&
|
if ((strstr(line, "src=127.0.0.1 ") && strstr(line, "dst=127.0.0.1 "))
|
||||||
strstr(line, "dst=127.0.0.1 "))
|
|| (strstr(line, "src=::1 ") && strstr(line, "dst=::1 ")))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname))
|
if (sscanf(line, "%*s %*d %s", ifname) || sscanf(line, "%s %*d", ifname))
|
||||||
|
|
Loading…
Reference in a new issue