Fixes for invalid checks for packet/non-packet interfaces

Addresses #5519
This commit is contained in:
Simone Mainardi 2021-06-29 18:43:00 +02:00
parent a8d08b2d3e
commit 18cbfc5b3a
13 changed files with 24 additions and 20 deletions

View file

@ -676,7 +676,7 @@ local function loadAndCheckScript(mod_fname, full_path, plugin, script_type, sub
return(nil)
end
if((not return_all) and ((check.nedge_exclude and ntop.isnEdge()) or (check.nedge_only and (not ntop.isnEdge())))) then
if((check.nedge_exclude and ntop.isnEdge()) or (check.nedge_only and (not ntop.isnEdge()))) then
traceError(TRACE_DEBUG, TRACE_CONSOLE, string.format("Skipping module '%s' for nEdge", mod_fname))
return(nil)
end