aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/bimi.lua
diff options
context:
space:
mode:
authorSimon Hauser <simon.hauser@helsinki-systems.de>2023-08-04 16:12:01 +0200
committerSimon Hauser <simon.hauser@helsinki-systems.de>2023-08-04 16:30:05 +0200
commitc04808c938e2a3deb0e9b43e3ae0af915d1d561d (patch)
tree8de52e7eb387fb9dbc00733b6b16616d92640cc3 /src/plugins/lua/bimi.lua
parent04c2886544ca562a0b9154974ecc491d14e0fba6 (diff)
downloadrspamd-c04808c938e2a3deb0e9b43e3ae0af915d1d561d.tar.gz
rspamd-c04808c938e2a3deb0e9b43e3ae0af915d1d561d.zip
fix: redis schema parsing
Diffstat (limited to 'src/plugins/lua/bimi.lua')
-rw-r--r--src/plugins/lua/bimi.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/bimi.lua b/src/plugins/lua/bimi.lua
index bcf5a823d..e90a4e3b9 100644
--- a/src/plugins/lua/bimi.lua
+++ b/src/plugins/lua/bimi.lua
@@ -34,7 +34,7 @@ local settings = {
}
local redis_params
-local settings_schema = ts.shape({
+local settings_schema = lua_redis.generate_schema({
helper_url = ts.string,
helper_timeout = ts.number + ts.string / lua_util.parse_time_interval,
helper_sync = ts.boolean,
@@ -42,7 +42,7 @@ local settings_schema = ts.shape({
redis_min_expiry = ts.number + ts.string / lua_util.parse_time_interval,
redis_prefix = ts.string,
enabled = ts.boolean:is_optional(),
-}, {extra_fields = lua_redis.config_schema})
+})
local function check_dmarc_policy(task)
local dmarc_sym = task:get_symbol('DMARC_POLICY_ALLOW')
@@ -378,4 +378,4 @@ if redis_params then
rspamd_config:register_dependency('BIMI_CHECK', 'DMARC_CHECK')
else
lua_util.disable_module(N, "redis")
-end \ No newline at end of file
+end