Skip to content

Commit

Permalink
Make it case insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
awlx authored Jan 8, 2025
1 parent dd6d800 commit cd11425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unifi_respondd/unifi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_client_count_for_ap(ap_mac, clients, cfg):
client5_count = 0
client24_count = 0
for client in clients:
if re.search(cfg.ssid_regex, client.get("essid", "")):
if re.search(cfg.ssid_regex, client.get("essid", ""), re.IGNORECASE):
if client.get("ap_mac", "No mac") == ap_mac:
if client.get("channel", 0) > 14:
client5_count += 1
Expand All @@ -101,7 +101,7 @@ def get_ap_channel_usage(ssids, cfg):
rx_bytes24 = None
tx_bytes24 = None
for ssid in ssids:
if re.search(cfg.ssid_regex, ssid.get("essid", "")):
if re.search(cfg.ssid_regex, ssid.get("essid", ""), re.IGNORECASE):
channel = ssid.get("channel", 0)
rx_bytes = ssid.get("rx_bytes", 0)
tx_bytes = ssid.get("tx_bytes", 0)
Expand Down

0 comments on commit cd11425

Please sign in to comment.