diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-26 14:59:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-26 15:00:02 +0000 |
commit | 434255a2a71e508d1e1de2bda368572d62be7e3e (patch) | |
tree | c3d5730ab0a53d3f30fe16711fb7dbbb612411c3 /src | |
parent | e96cab20b996c1555ba0e5748057649c5ab82d8d (diff) | |
download | rspamd-434255a2a71e508d1e1de2bda368572d62be7e3e.tar.gz rspamd-434255a2a71e508d1e1de2bda368572d62be7e3e.zip |
[Rework] Lua_scanners: Further library split
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index b32771ddd..9e142cb82 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -18,7 +18,7 @@ local rspamd_logger = require "rspamd_logger" local rspamd_regexp = require "rspamd_regexp" local lua_util = require "lua_util" local fun = require "fun" -local lua_antivirus = require("lua_scanners").antivirus +local lua_antivirus = require("lua_scanners").filter('antivirus') local redis_params local N = "antivirus" @@ -76,7 +76,7 @@ local function add_antivirus_rule(sym, opts) end if not opts['symbol'] then opts['symbol'] = sym:upper() end - local cfg = lua_antivirus.av_types[opts['type']] + local cfg = lua_antivirus[opts['type']] if not cfg then rspamd_logger.errx(rspamd_config, 'unknown antivirus type: %s', |