Handles possibly missing nindex_utils as in Windows

This commit is contained in:
Simone Mainardi 2019-07-02 16:27:34 +02:00
parent 9c5f4f8198
commit 8c9bf94f4b
4 changed files with 13 additions and 4 deletions

View file

@ -747,6 +747,10 @@ function hasNagiosSupport()
end
function hasNindexSupport()
if not ntop.isEnterprise() or ntop.isWindows() then
return false
end
-- TODO optimize
if prefs == nil then
prefs = ntop.getPrefs()