mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added fix for displaying symbolic interface maes (and aliases) in user preferences
This commit is contained in:
parent
7980f76756
commit
2f6800b7aa
3 changed files with 18 additions and 8 deletions
|
|
@ -23,6 +23,11 @@ if(haveAdminPrivileges()) then
|
|||
else
|
||||
print(' "allowed_nets": "'..value["allowed_nets"]..'",\n')
|
||||
print(' "allowed_ifname": "'..value["allowed_ifname"]..'",\n')
|
||||
|
||||
if(value["allowed_ifname"] ~= "") then
|
||||
local iface_id = interface.name2id(value["allowed_ifname"])
|
||||
print(' "allowed_if_id": "'..iface_id..'",\n')
|
||||
end
|
||||
end
|
||||
|
||||
print(' "username": "'..key..'",\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue