Fixed attempt to call nil value (#6043)

This commit is contained in:
MatteoBiscosi 2021-11-04 11:06:45 +01:00
parent fb51c6e6fb
commit c83aba6b5d

View file

@ -921,7 +921,7 @@ end
-- NOTE: global nindex support may be enabled but some disable on some interfaces
function interfaceHasNindexSupport()
return(hasNindexSupport() and ((interface.nIndexEnabled and interface.nIndexEnabled()) or ntop.getPrefs()["is_dump_flows_to_clickhouse_enabled"]))
return(hasNindexSupport() and (interface.nIndexEnabled() or ntop.getPrefs()["is_dump_flows_to_clickhouse_enabled"]))
end
--for _key, _value in pairsByKeys(vals, rev) do