mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Review and fix all nedge code accessing CH
This commit is contained in:
parent
0ce55bdd67
commit
5e4587c094
5 changed files with 6 additions and 10 deletions
|
|
@ -20,7 +20,6 @@ dirs = ntop.getDirs()
|
|||
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/i18n/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/timeseries/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/flow_dbms/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
|
||||
require "lua_trace"
|
||||
|
|
@ -311,7 +310,8 @@ end
|
|||
function hasClickHouseSupport()
|
||||
local auth = require "auth"
|
||||
|
||||
if not ntop.isPro() or ntop.isWindows() then
|
||||
if not (ntop.isPro() or ntop.isnEdgeEnterprise())
|
||||
or ntop.isWindows() then
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
@ -339,10 +339,6 @@ function interfaceHasClickHouseSupport()
|
|||
return(hasClickHouseSupport() and ntop.getPrefs()["is_dump_flows_to_clickhouse_enabled"])
|
||||
end
|
||||
|
||||
--for _key, _value in pairsByKeys(vals, rev) do
|
||||
-- print(_key .. "=" .. _value .. "\n")
|
||||
--end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function truncate(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue