From 050df245425cc369f73f69182393a57a213d95d3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 8 May 2016 17:13:00 +0100 Subject: [PATCH] [Minor] Use shorter keys for replies module --- src/plugins/lua/replies.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5