diff options
-rw-r--r-- | lualib/lua_redis.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index d22a4010c..33757b154 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -110,9 +110,9 @@ local function try_load_redis_servers(options, rspamd_config, result) result['password'] = options['password'] end - if read_only and not result.write_servers then + if read_only and not upstreams_write then result.read_only = true - elseif result.write_servers then + elseif upstreams_write then result.read_only = false end |