diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-25 20:52:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-25 20:52:14 +0000 |
commit | a1410d8d5e62886dd6a51784bd96c3d844b0d072 (patch) | |
tree | e96e913e9f4287a0bfdeb060a05d6bbdb3ce26d4 /src/plugins/lua/p0f.lua | |
parent | b9686126889deafc75fc853e29a68397dc4446b1 (diff) | |
download | rspamd-a1410d8d5e62886dd6a51784bd96c3d844b0d072.tar.gz rspamd-a1410d8d5e62886dd6a51784bd96c3d844b0d072.zip |
[Minor] Add more redis prefixes
Diffstat (limited to 'src/plugins/lua/p0f.lua')
-rw-r--r-- | src/plugins/lua/p0f.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/lua/p0f.lua b/src/plugins/lua/p0f.lua index f7fed7886..3242e73b0 100644 --- a/src/plugins/lua/p0f.lua +++ b/src/plugins/lua/p0f.lua @@ -78,6 +78,11 @@ rule = p0f.configure(opts) if rule then rule.redis_params = lua_redis.parse_redis_server(N) + lua_redis.register_prefix(rule.prefix .. '*', N, + 'P0f check cache', { + type = 'string', + }) + local id = rspamd_config:register_symbol({ name = 'P0F_CHECK', type = 'prefilter,nostat', |