]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Propagate unused Redis Sentinel options 5597/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 2 Sep 2025 11:05:26 +0000 (13:05 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 2 Sep 2025 11:05:26 +0000 (13:05 +0200)
lualib/lua_redis.lua

index 195b7759f3b1cbe37d484dd7bc8e846ab411e037..87f6bf419c00bcb49428124bdab97636f72a83a1 100644 (file)
@@ -392,6 +392,22 @@ local function process_redis_opts(options, redis_params)
     redis_params['sentinel_masters_pattern'] = options['sentinel_masters_pattern']
   end
 
+  if options['sentinel_watch_time'] and not redis_params['sentinel_watch_time'] then
+    redis_params['sentinel_watch_time'] = options['sentinel_watch_time']
+  end
+
+  if options['sentinel_username'] and not redis_params['sentinel_username'] then
+    redis_params['sentinel_username'] = options['sentinel_username']
+  end
+
+  if options['sentinel_password'] and not redis_params['sentinel_password'] then
+    redis_params['sentinel_password'] = options['sentinel_password']
+  end
+
+  if options['sentinel_master_maxerrors'] and not redis_params['sentinel_master_maxerrors'] then
+    redis_params['sentinel_master_maxerrors'] = options['sentinel_master_maxerrors']
+  end
+
 end
 
 local function enrich_defaults(rspamd_config, module, redis_params)