modules/admin-full: filter localhost<->localhost connections live connection graph
[project/luci.git] / modules / admin-full / src / luci-bwc.c
index 52e25e6..1a4f510 100644 (file)
@@ -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"))