mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
parent
10ccc7745a
commit
6272c85a3c
1 changed files with 5 additions and 0 deletions
|
|
@ -2285,6 +2285,11 @@ function getHumanReadableInterfaceName(interface_name)
|
|||
elseif tonumber(interface_name) ~= nil then
|
||||
-- convert ID to name
|
||||
interface_name = getInterfaceName(interface_name)
|
||||
else
|
||||
-- Parameter is a string, let's take it's id first
|
||||
local interface_id = getInterfaceId(interface_name)
|
||||
-- and then get the name
|
||||
interface_name = getInterfaceName(interface_id)
|
||||
end
|
||||
|
||||
local key = 'ntopng.prefs.'..interface_name..'.name'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue