mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Make the user defined device type a preference and fix host pool member icon assignment
This commit is contained in:
parent
08ec407fbb
commit
8b92590287
6 changed files with 40 additions and 30 deletions
|
|
@ -74,9 +74,10 @@ if((ifid ~= nil) and (isAdministrator())) then
|
|||
local icon = ""
|
||||
if is_mac then
|
||||
alias = getDeviceName(member.address, 0)
|
||||
icon = getCustomDeviceType(member.key)
|
||||
|
||||
if mac_info ~= nil then
|
||||
icon = mac_info["device_type"]
|
||||
if (icon == nil) and (mac_info ~= nil) then
|
||||
icon = mac_info["devtype"]
|
||||
end
|
||||
|
||||
if alias == host_key then
|
||||
|
|
@ -85,10 +86,6 @@ if((ifid ~= nil) and (isAdministrator())) then
|
|||
elseif is_host then
|
||||
alias = getHostAltName(host_key)
|
||||
|
||||
if active_hosts[host_key] then
|
||||
icon = active_hosts[host_key]["device_type"]
|
||||
end
|
||||
|
||||
if alias == host_key then
|
||||
alias = ""
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue