diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-06 13:51:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-06 13:51:23 +0000 |
commit | e618b4d152e38f9c939e94923d895e7ad1f071b5 (patch) | |
tree | b4d9a0494c812f0e12655b4ae0f84abce7705f06 /src | |
parent | c3a2ef5ad853b6af30feb97ffa078523ae8cdefa (diff) | |
download | rspamd-e618b4d152e38f9c939e94923d895e7ad1f071b5.tar.gz rspamd-e618b4d152e38f9c939e94923d895e7ad1f071b5.zip |
[Conf] Add default configuration for antivirus module
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 417a93fb4..cc59ae86e 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -646,7 +646,7 @@ local opts = rspamd_config:get_all_opt('antivirus') if opts and type(opts) == 'table' then redis_params = rspamd_parse_redis_server('antivirus') for k, m in pairs(opts) do - if type(m) == 'table' and m['type'] then + if type(m) == 'table' and m['type'] and m['servers'] then local cb = add_antivirus_rule(k, m) if not cb then rspamd_logger.errx(rspamd_config, 'cannot add rule: "' .. k .. '"') |