aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/kaspersky_av.lua
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-28 11:30:33 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-04-29 20:10:12 +0200
commitd0b4431f818c1034a62d2754bba972a735219e6a (patch)
tree3185ad96f117568c7e498d1b6837d121bdfabe8d /lualib/lua_scanners/kaspersky_av.lua
parent4d95a0327becd78123212a2adf0138e08c4fac7d (diff)
downloadrspamd-d0b4431f818c1034a62d2754bba972a735219e6a.tar.gz
rspamd-d0b4431f818c1034a62d2754bba972a735219e6a.zip
[Minor] lua_scanners - try dynamic scan
Diffstat (limited to 'lualib/lua_scanners/kaspersky_av.lua')
-rw-r--r--lualib/lua_scanners/kaspersky_av.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lualib/lua_scanners/kaspersky_av.lua b/lualib/lua_scanners/kaspersky_av.lua
index d87f78886..87411c3b9 100644
--- a/lualib/lua_scanners/kaspersky_av.lua
+++ b/lualib/lua_scanners/kaspersky_av.lua
@@ -167,6 +167,14 @@ local function kaspersky_check(task, content, digest, rule)
end
end
+ if rule.dynamic_scan then
+ local pre_check, pre_check_msg = common.check_metric_results(task, rule)
+ if pre_check then
+ rspamd_logger.infox(task, '%s: aborting: %s', rule.log_prefix, pre_check_msg)
+ return true
+ end
+ end
+
tcp.request({
task = task,
host = addr:to_string(),