mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Update user_scripts.lua
This commit is contained in:
parent
aa45a8d64e
commit
2512beb34f
1 changed files with 3 additions and 1 deletions
|
|
@ -1354,7 +1354,9 @@ function user_scripts.getTargetHookConfig(target_config, script, hook)
|
|||
|
||||
local conf = script_conf[hook] or default_config
|
||||
local default_values = script.default_value or {}
|
||||
|
||||
|
||||
-- Each new default value will be added to the conf.script_conf table
|
||||
-- in this way if future values need to be added here there won't be problems
|
||||
for key, value in pairs(default_values) do
|
||||
if not conf.script_conf[key] then
|
||||
conf.script_conf[key] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue