Added fix for displaying symbolic interface maes (and aliases) in user preferences

This commit is contained in:
Luca Deri 2017-06-06 19:36:53 +02:00
parent 7980f76756
commit 2f6800b7aa
3 changed files with 18 additions and 8 deletions

View file

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