aboutsummaryrefslogtreecommitdiffstats
path: root/src/http_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http_proxy.c')
-rw-r--r--src/http_proxy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/http_proxy.c b/src/http_proxy.c
index 5cdd18c70..f0680fcb0 100644
--- a/src/http_proxy.c
+++ b/src/http_proxy.c
@@ -468,13 +468,11 @@ start_http_proxy (struct rspamd_worker *worker)
ctx->ev_base = rspamd_prepare_worker (worker, "http_proxy",
proxy_accept_socket);
- rspamd_map_watch (worker->srv->cfg, ctx->ev_base);
-
-
ctx->resolver = dns_resolver_init (worker->srv->logger,
ctx->ev_base,
worker->srv->cfg);
double_to_tv (ctx->timeout, &ctx->io_tv);
+ rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver);
rspamd_upstreams_library_config (worker->srv->cfg, ctx->cfg->ups_ctx,
ctx->ev_base, ctx->resolver->r);