]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Register plugin prefix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 8 Oct 2019 15:12:44 +0000 (16:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 8 Oct 2019 15:12:44 +0000 (16:12 +0100)
src/plugins/lua/history_redis.lua

index ed97cb7fea7d14b3831c33e8255231bfabc7f898..8a23a75f86883abf84ad33a9623c309baf350d6d 100644 (file)
@@ -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
     }