Changed MAC check for whitelist upto last 2 characters.

This commit is contained in:
Jeroen Oudshoorn
2024-01-17 18:26:45 +01:00
parent ca274036ab
commit 80e7e6c550

View File

@ -184,7 +184,7 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
for ap in s['wifi']['aps']:
if ap['encryption'] == '' or ap['encryption'] == 'OPEN':
continue
elif ap['hostname'] in whitelist or ap['mac'].lower() in whitelist:
elif ap['hostname'] in whitelist or ap['mac'][:13].lower() in whitelist:
continue
elif ap['hostname'] not in whitelist \
and ap['mac'].lower() not in whitelist \