diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-25 12:40:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-25 12:40:15 +0000 |
commit | 0dd7203ee541be133c5fab808305146fc311c4f0 (patch) | |
tree | d3de4db20499b7e08dbc27da13f6e349a8ae1e95 /lualib/lua_redis.lua | |
parent | c3646183acf81ebf630cba1615d7ebf6105ee388 (diff) | |
download | rspamd-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.lua | 2 |
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") |