This commit is contained in:
Alfredo Cardigliano 2025-04-15 17:27:46 +02:00
parent ab4ba7da30
commit c4c2a2d3a3
3 changed files with 11 additions and 6 deletions

View file

@ -683,15 +683,15 @@ function get_manufacturer_mac(mac_address)
local m = string.sub(mac_address, 1, 8)
local ret = get_mac_classification(m, true --[[ extended name --]] )
if (ret == m) then
ret = "n/a"
if ret == m then
ret = ""
end
if ret and ret ~= "" then
if not isEmptyString(ret) then
ret = ret:gsub("'", " ")
end
return ret or "n/a"
return ret
end
-- ##############################################

View file

@ -489,7 +489,12 @@ local guess_icon_keys = {
-- #############################################
function guessHostIcon(key)
local m = string.lower(get_manufacturer_mac(key))
local m = get_manufacturer_mac(key)
if isEmptyString(m) then
return ""
end
m = string.lower(get_manufacturer_mac(key))
local icon = guess_icon_keys[m]
if ((icon ~= nil) and (icon ~= "")) then