]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Neural: Fix error in Redis script
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Sep 2020 15:55:26 +0000 (16:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Sep 2020 15:55:46 +0000 (16:55 +0100)
src/plugins/lua/neural.lua

index 5d2e9bfd555f0df7382d7ca0c9abd6a5e6c081f0..eda089abcad568dc62b621fa5478ff731a8071f2 100644 (file)
@@ -116,7 +116,7 @@ local redis_lua_script_vectors_len = [[
   local locked = redis.call('HGET', prefix, 'lock')
   if locked then
     local host = redis.call('HGET', prefix, 'hostname') or 'unknown'
-    return string.format('%s:%s', hostname, locked)
+    return string.format('%s:%s', host, locked)
   end
   local nspam = 0
   local nham = 0