diff options
Diffstat (limited to 'src/plugins/lua/bimi.lua')
-rw-r--r-- | src/plugins/lua/bimi.lua | 6 |
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 |