Added a lower() factor to mac addresses in get_interface_from_mac() to match list_interfaces().

This commit is contained in:
Anton Hvornum 2020-11-29 21:51:39 +00:00
parent 0a085e5106
commit 783e8ac117
1 changed files with 1 additions and 1 deletions

View File

@ -20,4 +20,4 @@ def list_interfaces(skip_loopback=True):
return interfaces
def get_interface_from_mac(mac):
return list_interfaces().get(mac, None)
return list_interfaces().get(mac.lower(), None)