From: Vsevolod Stakhov Date: Tue, 13 Jun 2017 20:06:01 +0000 (+0100) Subject: [Minor] Pass rspamd_config to taskless TCP requests X-Git-Tag: 1.6.1~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12aeaa15c77b65b09d1f065f2cb89dfb781f92c9;p=rspamd.git [Minor] Pass rspamd_config to taskless TCP requests --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 5afda58a3..04382c00b 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -884,6 +884,7 @@ if opts['reporting'] == true then rspamd_tcp.request({ ev_base = ev_base, callback = mail_cb, + config = rspamd_config, stop_pattern = '\r\n', host = report_settings.smtp, port = report_settings.smtp_port, diff --git a/src/plugins/lua/metric_exporter.lua b/src/plugins/lua/metric_exporter.lua index c28e58560..4951e6594 100644 --- a/src/plugins/lua/metric_exporter.lua +++ b/src/plugins/lua/metric_exporter.lua @@ -123,6 +123,7 @@ local function graphite_push(kwargs) tcp.request({ ev_base = kwargs['ev_base'], + config = rspamd_config, pool = pool, host = settings['host'], port = settings['port'],