Merge pull request #1003 from stangri/luci-app-vpnbypass
[project/luci.git] / modules / luci-mod-admin-full / src / luci-bwc.c
index 05e4667..8ddd917 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * luci-bwc - Very simple bandwidth collector cache for LuCI realtime graphs
  *
- *   Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
+ *   Copyright (C) 2010 Jo-Philipp Wich <jow@openwrt.org>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -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))