Skip to content

Commit

Permalink
Fixes #7029
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Dec 12, 2022
1 parent 32662a5 commit 9d7bdc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/lua/inc/menu.lua
Expand Up @@ -305,7 +305,7 @@ else

-- Exporters

local has_exporters = (ifs.type == "zmq") or (ifs.type == "custom") or (table.len(interface.getFlowDevices()) > 0)
local has_exporters = (ifs.type == "zmq") or (ifs.type == "custom") or (ntop.isPro() and (table.len(interface.getFlowDevices()) > 0))

page_utils.add_menubar_section(
{
Expand Down
4 changes: 3 additions & 1 deletion src/LuaEngineInterface.cpp
Expand Up @@ -4768,10 +4768,12 @@ static luaL_Reg _ntop_interface_reg[] = {
/* SNMP */
{ "getSNMPStats", ntop_interface_get_snmp_stats },

#ifdef NTOPNG_PRO
/* Flow Devices */
{ "getFlowDevices", ntop_get_flow_devices },
{ "getFlowDeviceInfo", ntop_get_flow_device_info },

#endif

#ifdef HAVE_NEDGE
/* L7 */
{ "reloadL7Rules", ntop_reload_l7_rules },
Expand Down

0 comments on commit 9d7bdc3

Please sign in to comment.