summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-18 14:07:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-18 14:07:32 +0000
commit34cc551018df1c174685493a64b496d594cc8eb6 (patch)
treeed4753582c271eade91013b53e6ae4b7fcdc4483 /src/controller.c
parent3a1974cf17f235b7bbb98de714fe0210ddb2c596 (diff)
downloadrspamd-34cc551018df1c174685493a64b496d594cc8eb6.tar.gz
rspamd-34cc551018df1c174685493a64b496d594cc8eb6.zip
[Project] Preliminary support of HTTP proxies
Issue: #572
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index ac1acae81..7b48462ee 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -3776,7 +3776,8 @@ start_controller_worker (struct rspamd_worker *worker)
"password");
/* Accept event */
- ctx->http_ctx = rspamd_http_context_create (ctx->cfg, ctx->ev_base);
+ ctx->http_ctx = rspamd_http_context_create (ctx->cfg, ctx->ev_base,
+ ctx->cfg->ups_ctx);
ctx->http = rspamd_http_router_new (rspamd_controller_error_handler,
rspamd_controller_finish_handler, &ctx->io_tv,
ctx->static_files_dir, ctx->http_ctx);