mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 23:56:50 +02:00
Fix redis read_only was incorrectly set to true.
We should use local variables in this check because result['xxx'] are assigned later.
This commit is contained in:
parent
09ec061b60
commit
529f6147b5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user