summaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-25 12:40:15 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-25 12:40:15 +0000
commit0dd7203ee541be133c5fab808305146fc311c4f0 (patch)
treed3de4db20499b7e08dbc27da13f6e349a8ae1e95 /lualib/lua_redis.lua
parentc3646183acf81ebf630cba1615d7ebf6105ee388 (diff)
downloadrspamd-0dd7203ee541be133c5fab808305146fc311c4f0.tar.gz
rspamd-0dd7203ee541be133c5fab808305146fc311c4f0.zip
[Minor] Move redis scripts from ratelimit file to simplify checks
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index 76e8db972..62511451e 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -1293,7 +1293,7 @@ local function load_redis_script_from_file(filename, redis_params, dir)
if not dir then dir = rspamd_paths.LUALIBDIR end
if filename:sub(1, 1) ~= package.config:sub(1,1) then
-- Relative path
- filename = lua_util.join_path(dir, filename)
+ filename = lua_util.join_path(dir, "redis_scripts", filename)
end
-- Read file contents
local file = io.open(filename, "r")