summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/replies.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-08 17:13:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-08 17:13:00 +0100
commit050df245425cc369f73f69182393a57a213d95d3 (patch)
tree96ee79de194922bbd130b5795f3330acfdc7f9cd /src/plugins/lua/replies.lua
parent57beaf3cf67a04c0b135e2938824c5bafc1e4b83 (diff)
downloadrspamd-050df245425cc369f73f69182393a57a213d95d3.tar.gz
rspamd-050df245425cc369f73f69182393a57a213d95d3.zip
[Minor] Use shorter keys for replies module
Diffstat (limited to 'src/plugins/lua/replies.lua')
-rw-r--r--src/plugins/lua/replies.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index dca2b0866..70228f0dc 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -37,7 +37,7 @@ local hash = require 'rspamd_cryptobox_hash'
local function make_key(goop)
local h = hash.create()
h:update(goop)
- local key = h:base32()
+ local key = h:base32():sub(1, 20)
key = settings['key_prefix'] .. key
return key
end