diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 1 | ||||
-rw-r--r-- | src/plugins/lua/external_services.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 2f8f948ad..07dbba2f0 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -164,6 +164,7 @@ if opts and type(opts) == 'table' then for k, m in pairs(opts) do if type(m) == 'table' and m.servers then if not m.type then m.type = k end + if not m.name then m.name = k end local cb = add_antivirus_rule(k, m) if not cb then diff --git a/src/plugins/lua/external_services.lua b/src/plugins/lua/external_services.lua index 1b6c9b752..d9481461f 100644 --- a/src/plugins/lua/external_services.lua +++ b/src/plugins/lua/external_services.lua @@ -118,6 +118,7 @@ if opts and type(opts) == 'table' then for k, m in pairs(opts) do if type(m) == 'table' and m.servers then if not m.type then m.type = k end + if not m.name then m.name = k end local cb = add_scanner_rule(k, m) if not cb then |