]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Propagate redis_timeout into nested greylist.redis{} block 5977/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 10 Apr 2026 11:31:48 +0000 (14:31 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 10 Apr 2026 11:31:48 +0000 (14:31 +0300)
commit3bfcf126c94f8f144714344bd6c3408f5d631ca8
treea05e363bba921f224861b1462acfd0682934e17b
parent6f7f0158c61ef802ca178d0bea3deae1406f82ad
[Fix] Propagate redis_timeout into nested greylist.redis{} block

When Redis is configured via greylist { redis { ... } }, parse_redis_server
reads opts.redis and ignores opts.timeout, so redis_timeout had no effect.
Shallow-copy the nested redis subtable and set its timeout when not
explicitly configured by the operator.
src/plugins/lua/greylist.lua