aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/rbl.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-17 14:21:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-17 14:21:38 +0000
commite4f459ef31aed15751edd9ae77f6183b7da3b7b4 (patch)
treeede84d963bd7eb5b0718449ac1d6c5a55f2ff89c /src/plugins/lua/rbl.lua
parent5dd0ab4ad379dd607ad808ca18cdf2b1032ccfb5 (diff)
downloadrspamd-e4f459ef31aed15751edd9ae77f6183b7da3b7b4.tar.gz
rspamd-e4f459ef31aed15751edd9ae77f6183b7da3b7b4.zip
[Feature] Ppopagate monitored errors from rbl module
Diffstat (limited to 'src/plugins/lua/rbl.lua')
-rw-r--r--src/plugins/lua/rbl.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index f476932b0..fcda1727f 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -228,6 +228,9 @@ local function rbl_dns_process(task, rbl, to_resolve, results, err, resolve_tabl
rspamd_logger.infox(task, 'error looking up %s: %s', to_resolve, err)
task:insert_result(rbl.symbol .. '_FAIL', 1, string.format('%s:%s',
resolve_table_elt.orig, err))
+ if rbl.monitored then
+ rbl.monitored:propagate_error(err)
+ end
return
end