Changed MAC check for whitelist upto last 2 characters.

This commit is contained in:
Jeroen Oudshoorn
2024-01-17 18:28:53 +01:00
parent 80e7e6c550
commit 1672a35f09

View File

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