mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Bugfix #6 v2.54
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Pi.Alert v2.53 / 2021-01-13
|
# Pi.Alert v2.54 / 2021-01-13
|
||||||
# Puche 2020
|
# Puche 2020
|
||||||
# GNU GPLv3
|
# GNU GPLv3
|
||||||
|
|
||||||
@@ -295,9 +295,12 @@ def update_devices_MAC_vendors ():
|
|||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
def query_MAC_vendor (pMAC):
|
def query_MAC_vendor (pMAC):
|
||||||
try :
|
try :
|
||||||
|
# BUGFIX #6 - Fix pMAC parameter as numbers
|
||||||
|
pMACstr = str(pMAC)
|
||||||
|
|
||||||
# Check MAC parameter
|
# Check MAC parameter
|
||||||
mac = pMAC.replace (':','')
|
mac = pMACstr.replace (':','')
|
||||||
if len(pMAC) != 17 or len(mac) != 12 :
|
if len(pMACstr) != 17 or len(mac) != 12 :
|
||||||
return -2
|
return -2
|
||||||
|
|
||||||
# Search vendor in HW Vendors DB
|
# Search vendor in HW Vendors DB
|
||||||
|
|||||||
BIN
db/pialert.db
BIN
db/pialert.db
Binary file not shown.
Reference in New Issue
Block a user