]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use shorter keys for replies module
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 8 May 2016 16:13:00 +0000 (17:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 8 May 2016 16:13:00 +0000 (17:13 +0100)
src/plugins/lua/replies.lua

index dca2b0866399cff803fa6624a0250adf2a830e80..70228f0dc83439291d56b5e94a05bca8263e3c09 100644 (file)
@@ -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