Handles allowed interfaces with ids to prevent issues with special chars

This commit is contained in:
Simone Mainardi 2016-07-14 16:41:42 +02:00
parent 03897ecc2e
commit 62e8ee0be7
4 changed files with 9 additions and 6 deletions

View file

@ -33,7 +33,7 @@ if(networks ~= nil) then
end
if(allowed_interface ~= nil) then
if(not ntop.changeAllowedIfname(username, allowed_interface)) then
if(not ntop.changeAllowedIfname(username, getInterfaceName(allowed_interface))) then
print ("{ \"result\" : -1, \"message\" : \"Error in changing the allowed interface\" }")
return
end