dcc_conf.default_port)
if dcc_conf.upstreams then
- lua_util.add_debug_alias('ext_scanners', N)
+ lua_util.add_debug_alias('external_services', N)
return dcc_conf
end
end
-- Registration
-local opts = rspamd_config:get_all_opt('antivirus')
+local opts = rspamd_config:get_all_opt(N)
if opts and type(opts) == 'table' then
- redis_params = rspamd_parse_redis_server('antivirus')
+ redis_params = rspamd_parse_redis_server(N)
local has_valid = false
for k, m in pairs(opts) do
if type(m) == 'table' and m.servers then
name = m['symbol'],
callback = cb,
score = 0.0,
- group = 'antivirus'
+ group = N
})
rspamd_config:register_symbol({
type = 'virtual',
name = m['symbol_fail'],
parent = id,
score = 0.0,
- group = 'antivirus'
+ group = N
})
has_valid = true
if type(m['patterns']) == 'table' then
name = sym,
parent = m['symbol'],
parent_id = id,
+ group = N
})
rspamd_config:register_symbol({
type = 'virtual',
name = sym,
- parent = id
+ parent = id,
+ group = N
})
end
end
rspamd_config:register_symbol({
type = 'virtual',
name = sym,
- parent = id
+ parent = id,
+ group = N
})
end
end
if m['score'] then
-- Register metric symbol
local description = 'antivirus symbol'
- local group = 'antivirus'
+ local group = N
if m['description'] then
description = m['description']
end