Browse Source

do not count multicast mac as client

thx to kb-light
Sunz3r 7 years ago
parent
commit
35eeb9c0a4
1 changed files with 4 additions and 3 deletions
  1. 4 3
      ext-respondd.py

+ 4 - 3
ext-respondd.py

@@ -78,9 +78,10 @@ def getClients():
         ml = re.match(r"^\s\*\s([0-9a-f:]+)\s+-\d\s\[([RPNXWI\.]+)\]", line, re.I)
         if ml:
             if not batadv_mac == ml.group(1): # Filter bat0
-                j["total"] += 1
-                if ml.group(2)[4] == 'W':
-                    j["wifi"] += 1
+                if not ml.group(1).startswith('33:33:') and not ml.group(1).startswith('01:00:5e:'): # Filter Multicast
+                    j["total"] += 1
+                    if ml.group(2)[4] == 'W':
+                        j["wifi"] += 1
 
     return j