aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-03 10:23:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-03 10:23:32 +0000
commit15dc327ac96fe547b8bcd7676e76a26fe8c9fd33 (patch)
tree9b7cbff6d46315f18661f830e72bdc9e0ef52376 /src
parent7fb60612e19e72a876edc9501a36c8ca3f088e68 (diff)
downloadrspamd-15dc327ac96fe547b8bcd7676e76a26fe8c9fd33.tar.gz
rspamd-15dc327ac96fe547b8bcd7676e76a26fe8c9fd33.zip
Configure upstreams in workers.
Diffstat (limited to 'src')
-rw-r--r--src/controller.c1
-rw-r--r--src/smtp_proxy.c1
-rw-r--r--src/worker.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 98a9df614..2fb23877e 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -1721,6 +1721,7 @@ start_controller_worker (struct rspamd_worker *worker)
worker->srv->cfg);
rspamd_upstreams_library_init (ctx->resolver->r, ctx->ev_base);
+ rspamd_upstreams_library_config (worker->srv->cfg);
/* Maps events */
start_map_watch (worker->srv->cfg, ctx->ev_base);
diff --git a/src/smtp_proxy.c b/src/smtp_proxy.c
index 7e881994f..2db126d37 100644
--- a/src/smtp_proxy.c
+++ b/src/smtp_proxy.c
@@ -1073,6 +1073,7 @@ start_smtp_proxy (struct rspamd_worker *worker)
worker->srv->cfg);
rspamd_upstreams_library_init (ctx->resolver->r, ctx->ev_base);
+ rspamd_upstreams_library_config (worker->srv->cfg);
/* Set umask */
umask (S_IWGRP | S_IWOTH | S_IROTH | S_IRGRP);
diff --git a/src/worker.c b/src/worker.c
index afd9a9b72..4bca03f2d 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -319,6 +319,7 @@ start_worker (struct rspamd_worker *worker)
worker->srv->cfg);
rspamd_upstreams_library_init (ctx->resolver->r, ctx->ev_base);
+ rspamd_upstreams_library_config (worker->srv->cfg);
/* Create classify pool */
ctx->classify_pool = NULL;