diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-31 21:25:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-31 21:25:21 +0100 |
commit | bb4171299d095c0a0830ece6ea95d99ef2bf7d72 (patch) | |
tree | 7f4bba83c9cf0831e94118a30b6f2dcabeee4d28 /src | |
parent | 4266f574abbf6523355c127ba09738fe54d00130 (diff) | |
download | rspamd-bb4171299d095c0a0830ece6ea95d99ef2bf7d72.tar.gz rspamd-bb4171299d095c0a0830ece6ea95d99ef2bf7d72.zip |
[Minor] Refactor module name variable
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index d9e44f455..417bd89eb 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -19,7 +19,7 @@ limitations under the License. local rspamd_logger = require "rspamd_logger" local rspamd_util = require "rspamd_util" -local rspamd_redis = require "lua_redis" +local lua_redis = require "lua_redis" local lua_util = require "lua_util" if confighelp then @@ -518,7 +518,7 @@ local function dmarc_validate_policy(task, policy, hdrfromdom, dmarc_esld) settings.reporting.redis_keys.join_char) if report_data then - rspamd_redis.exec_redis_script(take_report_id, + lua_redis.exec_redis_script(take_report_id, {task = task, is_write = true}, dmarc_report_cb, {idx_key, dmarc_domain_key, @@ -706,12 +706,12 @@ lua_maps.fill_config_maps(N, settings, { if settings.reporting == true then rspamd_logger.errx(rspamd_config, 'old style dmarc reporting is NO LONGER supported, please read the documentation') elseif settings.reporting.enabled then - redis_params = rspamd_parse_redis_server('dmarc') + redis_params = lua_redis.parse_redis_server('dmarc', opts) if not redis_params then rspamd_logger.errx(rspamd_config, 'cannot parse servers parameter') else rspamd_logger.infox(rspamd_config, 'dmarc reporting is enabled') - take_report_id = rspamd_redis.add_redis_script(take_report_script, redis_params) + take_report_id = lua_redis.add_redis_script(take_report_script, redis_params) end end |