commit 60508a6: [Minor] Neural: Fix error in Redis script

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Sep 15 15:56:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-09-15 16:55:26 +0100
URL: https://github.com/rspamd/rspamd/commit/60508a64e943d4c77d67d1739320bf47cbd69558 (HEAD -> master)

[Minor] Neural: Fix error in Redis script

---
 src/plugins/lua/neural.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index 5d2e9bfd5..eda089abc 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -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


More information about the Commits mailing list