mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-02 08:12:21 -07:00
feat: Enhance plugin configurations and improve MAC normalization
This commit is contained in:
@@ -184,7 +184,12 @@ def normalize_mac(mac):
|
||||
:param mac: The MAC address to normalize.
|
||||
:return: The normalized MAC address.
|
||||
"""
|
||||
s = str(mac).upper().strip()
|
||||
s = str(mac).strip()
|
||||
|
||||
if s.lower() == "internet":
|
||||
return "Internet"
|
||||
|
||||
s = s.upper()
|
||||
|
||||
# Determine separator if present, prefer colon, then hyphen
|
||||
if ':' in s:
|
||||
|
||||
Reference in New Issue
Block a user