diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-31 11:25:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-31 11:25:43 +0000 |
commit | e9c96fdb286727b1a95b8484e7d4e2877bbc3629 (patch) | |
tree | ad3884fdcb74e1e1337d6dae22318c066cd8da0c /lualib/lua_scanners/fprot.lua | |
parent | 28c372c37e8c0f68be76111bbac99996f09dbf0b (diff) | |
download | rspamd-e9c96fdb286727b1a95b8484e7d4e2877bbc3629.tar.gz rspamd-e9c96fdb286727b1a95b8484e7d4e2877bbc3629.zip |
[Minor] Lua_scanners: Add more generic yield result
Diffstat (limited to 'lualib/lua_scanners/fprot.lua')
-rw-r--r-- | lualib/lua_scanners/fprot.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lualib/lua_scanners/fprot.lua b/lualib/lua_scanners/fprot.lua index 1cb21dd43..27a29a4bc 100644 --- a/lualib/lua_scanners/fprot.lua +++ b/lualib/lua_scanners/fprot.lua @@ -25,7 +25,7 @@ local upstream_list = require "rspamd_upstream_list" local rspamd_logger = require "rspamd_logger" local common = require "lua_scanners/common" -local N = "antivirus" +local N = "fprot" local default_message = '${SCANNER}: virus found: "${VIRUS}"' @@ -35,8 +35,9 @@ local function fprot_config(opts) scan_text_mime = false; scan_image_mime = false; default_port = 10200, - timeout = 15.0, -- FIXME: this will break task_timeout! + timeout = 5.0, -- FIXME: this will break task_timeout! log_clean = false, + detection_category = "virus", retransmits = 2, cache_expire = 3600, -- expire redis in one hour message = default_message, @@ -152,7 +153,7 @@ local function fprot_check(task, content, digest, rule) }) end - if common.need_av_check(task, content, rule) then + if common.need_av_check(task, content, rule, N) then if common.check_av_cache(task, digest, rule, fprot_check_uncached, N) then return else |