From 3f00d108df7c99edd5cb45e34d232a80e159caa3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 19 Feb 2019 17:57:13 +0000 Subject: [Project] Adopt plugins, workers, rspamadm and rspamc for http_context --- src/rspamadm/lua_repl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rspamadm/lua_repl.c') diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c index 6248f2aa2..e91bd34fa 100644 --- a/src/rspamadm/lua_repl.c +++ b/src/rspamadm/lua_repl.c @@ -808,8 +808,9 @@ rspamadm_lua (gint argc, gchar **argv, const struct rspamadm_command *cmd) ctx = g_malloc0 (sizeof (*ctx)); http = rspamd_http_router_new (rspamadm_lua_error_handler, rspamadm_lua_finish_handler, - NULL, ev_base, - NULL, NULL); + NULL, + NULL, + rspamd_main->http_ctx); ctx->L = L; ctx->rt = http; rspamd_http_router_add_path (http, -- cgit v1.2.3