Fixes non-human-friendly interface names on windows

Fixes #4635
This commit is contained in:
Simone Mainardi 2020-10-28 12:32:23 +01:00
parent 10ccc7745a
commit 6272c85a3c

View file

@ -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'