Have Vendor display as "N/A" if vendor not found in "MAC Address OUI Count by Vendor"

This commit is contained in:
Akkadius 2018-08-14 00:56:00 -05:00
parent 0e2d834b07
commit 877fbff2c1
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ router.get('/', function (req, res, next) {
}
if (stat_data[mac_oui].vendor !== "undefined") {
stat_data[mac_oui].vendor = "N/A";
if (typeof oui_data[mac_oui] !== "undefined") {
stat_data[mac_oui].vendor = oui_data[mac_oui];
}