mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix nil access
This commit is contained in:
parent
45c43467c9
commit
e557a38ba4
1 changed files with 3 additions and 1 deletions
|
|
@ -1374,7 +1374,7 @@ function user_scripts.loadDefaultConfig()
|
|||
local ifid = getSystemInterfaceId()
|
||||
local configsets = user_scripts.getConfigsets()
|
||||
local default_conf = configsets[user_scripts.DEFAULT_CONFIGSET_ID]
|
||||
local default_filters = configsets[user_scripts.DEFAULT_CONFIGSET_ID]["filters"] or {}
|
||||
local default_filters
|
||||
|
||||
if default_conf then
|
||||
default_conf = default_conf.config or {}
|
||||
|
|
@ -1385,6 +1385,8 @@ function user_scripts.loadDefaultConfig()
|
|||
default_conf = {}
|
||||
end
|
||||
|
||||
default_filters = default_conf["filters"] or {}
|
||||
|
||||
for type_id, script_type in pairs(user_scripts.script_types) do
|
||||
for _, subdir in pairs(script_type.subdirs) do
|
||||
local scripts = user_scripts.load(ifid, script_type, subdir, {return_all = true})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue