Always use ntop.isClickHouseEnabled() from lua. Remove prefs.is_dump_flows_to_mysql_enabled to avoid inconsistencies.

This commit is contained in:
Alfredo Cardigliano 2024-07-10 09:03:05 +00:00
parent abf89f79c4
commit 06965dab27
9 changed files with 14 additions and 22 deletions

View file

@ -929,7 +929,7 @@ function formatAlertAHref(key, value, label)
end
function add_historical_flow_explorer_button_ref(extra_params, no_href)
if (ntop.getPrefs()["is_dump_flows_to_clickhouse_enabled"]) == false then
if not ntop.isClickHouseEnabled() then
return ''
end