diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-19 14:13:02 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-19 14:13:02 +0000 |
commit | e9c35582e7b22661975f5898891d02bbe9651ebf (patch) | |
tree | ce71962cc4822b5f2f5c849478924f9e517ded06 /lualib | |
parent | 8fd4189a09d89cbd49527282eeb9360858a24148 (diff) | |
download | rspamd-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.lua | 2 |
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 |