From: Andrew Lewis Date: Fri, 25 Aug 2017 15:36:13 +0000 (+0200) Subject: [Fix] Redis script loading in DMARC; URL tags; URL reputation X-Git-Tag: 1.6.4~22^2~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=226f0c1942a4fba9f57c7c43715249965c4b8980;p=rspamd.git [Fix] Redis script loading in DMARC; URL tags; URL reputation - Issue: #1716 --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 10aa95589..2fbbff69b 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -625,7 +625,6 @@ if opts['reporting'] == true then elseif not opts['send_reports'] then dmarc_reporting = true rspamd_config:add_on_load(function(cfg, ev_base, worker) - if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end load_scripts(cfg, ev_base) end) else @@ -642,9 +641,9 @@ if opts['reporting'] == true then end end rspamd_config:add_on_load(function(cfg, ev_base, worker) + load_scripts(cfg, ev_base) if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end local rresolver = rspamd_resolver.init(ev_base, rspamd_config) - load_scripts(cfg, ev_base) rspamd_config:register_finish_script(function () local stamp = pool:get_variable(VAR_NAME, 'double') if not stamp then diff --git a/src/plugins/lua/url_reputation.lua b/src/plugins/lua/url_reputation.lua index 73043aa4e..5c5dee14e 100644 --- a/src/plugins/lua/url_reputation.lua +++ b/src/plugins/lua/url_reputation.lua @@ -432,7 +432,6 @@ end whitelist = rspamd_map_add(N, 'whitelist', 'map', 'URL reputation whitelist') rspamd_config:add_on_load(function(cfg, ev_base, worker) - if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end load_scripts(cfg, ev_base) end) local id = rspamd_config:register_symbol({ diff --git a/src/plugins/lua/url_tags.lua b/src/plugins/lua/url_tags.lua index 3fe010546..9aa64e1f4 100644 --- a/src/plugins/lua/url_tags.lua +++ b/src/plugins/lua/url_tags.lua @@ -378,7 +378,6 @@ end settings.ignore_tags = list_to_hash(settings.ignore_tags) rspamd_config:add_on_load(function(cfg, ev_base, worker) - if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end load_scripts(cfg, ev_base) end) rspamd_config:register_symbol({