aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-26 18:05:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-26 18:05:23 +0000
commite7073a76bd2543beef76428b4662dbc9ad68ee07 (patch)
tree48c6d2f2fa1771d600ff847b83755ea194858619 /lualib/lua_redis.lua
parenta69bdc3c0e6f52e1eeef5c2c284da1a3fb250c93 (diff)
downloadrspamd-e7073a76bd2543beef76428b4662dbc9ad68ee07.tar.gz
rspamd-e7073a76bd2543beef76428b4662dbc9ad68ee07.zip
[Feature] Implement DKIM reputation adjustments
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index eda8dc37f..8dafa023b 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -103,9 +103,10 @@ local function rspamd_parse_redis_server(module_name, module_opts, no_fallback)
else
opts = module_opts
end
- local ret = false
if opts then
+ local ret
+
if opts.redis then
ret = try_load_redis_servers(opts.redis, result)
@@ -127,6 +128,8 @@ local function rspamd_parse_redis_server(module_name, module_opts, no_fallback)
opts = rspamd_config:get_all_opt('redis')
if opts then
+ local ret
+
if opts[module_name] then
ret = try_load_redis_servers(opts[module_name], result)
if ret then