fixed invalid nindex detection, other improvements

This commit is contained in:
Alfredo Cardigliano 2018-10-15 12:43:52 +02:00
parent 49a5817fa6
commit 963c4bb721
5 changed files with 44 additions and 6 deletions

View file

@ -742,7 +742,10 @@ function hasNindexSupport()
if prefs == nil then
prefs = ntop.getPrefs()
end
return prefs.is_nindex_enabled
local rc = prefs.is_nindex_enabled
if(rc == nil) then rc = false end
return rc
end
--for _key, _value in pairsByKeys(vals, rev) do