aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-19 14:13:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-19 14:13:02 +0000
commite9c35582e7b22661975f5898891d02bbe9651ebf (patch)
treece71962cc4822b5f2f5c849478924f9e517ded06 /lualib
parent8fd4189a09d89cbd49527282eeb9360858a24148 (diff)
downloadrspamd-e9c35582e7b22661975f5898891d02bbe9651ebf.tar.gz
rspamd-e9c35582e7b22661975f5898891d02bbe9651ebf.zip
[Minor] Allow to parse integer database names for Redis
Issue: #2083 Closes: #2083
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_redis.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index ee015fef2..067353abc 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -98,6 +98,8 @@ local function try_load_redis_servers(options, rspamd_config, result)
result['db'] = tostring(options['db'])
elseif options['dbname'] then
result['db'] = tostring(options['dbname'])
+ elseif options['database'] then
+ result['db'] = tostring(options['database'])
end
end
if options['password'] and not result['password'] then