commit f6f3788: [Minor] Register plugin prefix
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 8 15:14:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-08 16:12:44 +0100
URL: https://github.com/rspamd/rspamd/commit/f6f3788672ea1bc06a03e6d86e0827fee5429c0e (HEAD -> master)
[Minor] Register plugin prefix
---
src/plugins/lua/history_redis.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua
index ed97cb7fe..8a23a75f8 100644
--- a/src/plugins/lua/history_redis.lua
+++ b/src/plugins/lua/history_redis.lua
@@ -238,7 +238,7 @@ if opts then
settings[k] = v
end
- redis_params = rspamd_parse_redis_server('history_redis')
+ redis_params = lua_redis.parse_redis_server('history_redis')
if not redis_params then
rspamd_logger.infox(rspamd_config, 'no servers are specified, disabling module')
lua_util.disable_module(N, "redis")
@@ -250,6 +250,8 @@ if opts then
flags = 'empty,explicit_disable,ignore_passthrough',
priority = 150
})
+ lua_redis.register_prefix(settings.key_prefix .. hostname, N,
+ "Redis history")
rspamd_plugins['history'] = {
handler = handle_history_request
}
More information about the Commits
mailing list