mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add possibility to skip redis access for preferences
This commit is contained in:
parent
2e42c0216b
commit
13e2333bfd
5 changed files with 28 additions and 9 deletions
|
|
@ -9,7 +9,6 @@ require "lua_utils"
|
|||
require "prefs_utils"
|
||||
require "blacklist_utils"
|
||||
local template = require "template_utils"
|
||||
local have_nedge = ntop.isnEdge()
|
||||
|
||||
if(ntop.isPro()) then
|
||||
package.path = dirs.installdir .. "/scripts/lua/pro/?.lua;" .. package.path
|
||||
|
|
@ -381,7 +380,7 @@ function printBridgingPrefs()
|
|||
|
||||
print('<table class="table">')
|
||||
|
||||
if show_advanced_prefs and not have_nedge then
|
||||
if show_advanced_prefs then
|
||||
print('<tr><th colspan=2 class="info">'..i18n("traffic_policy")..'</th></tr>')
|
||||
|
||||
prefsToggleButton({
|
||||
|
|
@ -1114,7 +1113,7 @@ if(tab == "discovery") then
|
|||
end
|
||||
|
||||
if(tab == "bridging") then
|
||||
if(info["version.enterprise_edition"] or have_nedge) then
|
||||
if info["version.enterprise_edition"] then
|
||||
printBridgingPrefs()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue