commit bb41712: [Minor] Refactor module name variable
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Jul 31 20:28:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-07-31 21:25:21 +0100
URL: https://github.com/rspamd/rspamd/commit/bb4171299d095c0a0830ece6ea95d99ef2bf7d72 (HEAD -> master)
[Minor] Refactor module name variable
---
src/plugins/lua/dmarc.lua | 8 ++++----
1 file 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
More information about the Commits
mailing list