We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19bbc2e commit 3bc9433Copy full SHA for 3bc9433
api/modules/client.py
@@ -3,7 +3,7 @@
3
4
def get_active_clients_amount(interface):
5
arp_output = subprocess.run(['arp', '-i', interface], capture_output=True, text=True)
6
- mac_addresses = arp_output.stdout.splitlines()
+ mac_addresses = mac_addresses = set(line.split()[2] for line in arp_output.stdout.splitlines()[1:])
7
8
if mac_addresses:
9
grep_pattern = '|'.join(mac_addresses)
0 commit comments