summaryrefslogtreecommitdiffstats
path: root/src/http_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-20 17:03:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-20 17:03:51 +0000
commit3d10a9ead7d1241035160ab3355577051186b0fd (patch)
tree7413ffa6f6ecf18422e95be046f06b9a40e4bc43 /src/http_proxy.c
parent64e6d18a31fd069a83baafe308a8c5d6ec3591e1 (diff)
downloadrspamd-3d10a9ead7d1241035160ab3355577051186b0fd.tar.gz
rspamd-3d10a9ead7d1241035160ab3355577051186b0fd.zip
Rework upstreams initialization
Diffstat (limited to 'src/http_proxy.c')
-rw-r--r--src/http_proxy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http_proxy.c b/src/http_proxy.c
index a5290de63..c35c02bd1 100644
--- a/src/http_proxy.c
+++ b/src/http_proxy.c
@@ -459,9 +459,8 @@ start_http_proxy (struct rspamd_worker *worker)
worker->srv->cfg);
double_to_tv (ctx->timeout, &ctx->io_tv);
- ctx->cfg->ups_ctx = rspamd_upstreams_library_init (ctx->resolver->r,
- ctx->ev_base);
- rspamd_upstreams_library_config (worker->srv->cfg, ctx->cfg->ups_ctx);
+ rspamd_upstreams_library_config (worker->srv->cfg, ctx->cfg->ups_ctx,
+ ctx->ev_base, ctx->resolver->r);
/* XXX: stupid default */
ctx->keys_cache = rspamd_keypair_cache_new (256);