]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Pass rspamd_config to taskless TCP requests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Jun 2017 20:06:01 +0000 (21:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Jun 2017 20:06:01 +0000 (21:06 +0100)
src/plugins/lua/dmarc.lua
src/plugins/lua/metric_exporter.lua

index 5afda58a3c42ec3ae747ed4874845122ed8cbf8d..04382c00b1facc10313282040f0116da033612a0 100644 (file)
@@ -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,
index c28e585601f1034058e69d289068bd4d6540b45a..4951e65943a7adf48b66d56609f53925c2485c12 100644 (file)
@@ -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'],