mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Handles allowed interfaces with ids to prevent issues with special chars
This commit is contained in:
parent
03897ecc2e
commit
62e8ee0be7
4 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue