aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/savapi.lua
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-13 01:10:11 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-13 01:10:11 +0100
commitb2bd2eefe7514656fcdc193367ddd96ee4f979b3 (patch)
tree5aaf701a940ac2477443c95ab147d70e63576a0f /lualib/lua_scanners/savapi.lua
parent7848a14b949a7e54423998a9db2c45fc2d337f04 (diff)
downloadrspamd-b2bd2eefe7514656fcdc193367ddd96ee4f979b3.tar.gz
rspamd-b2bd2eefe7514656fcdc193367ddd96ee4f979b3.zip
[Minor] lua_scanner - redis prefix (support for multiple rules of the same type)
Diffstat (limited to 'lualib/lua_scanners/savapi.lua')
-rw-r--r--lualib/lua_scanners/savapi.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/lua_scanners/savapi.lua b/lualib/lua_scanners/savapi.lua
index d8ae8957b..dfe67d28c 100644
--- a/lualib/lua_scanners/savapi.lua
+++ b/lualib/lua_scanners/savapi.lua
@@ -52,6 +52,10 @@ local function savapi_config(opts)
end
if not savapi_conf.prefix then
+ savapi_conf.prefix = 'rs_' .. savapi_conf.name .. '_'
+ end
+
+ if not savapi_conf.prefix then
savapi_conf.prefix = 'rs_ap'
end