aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/lua_repl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-19 17:57:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-19 17:57:13 +0000
commit3f00d108df7c99edd5cb45e34d232a80e159caa3 (patch)
tree1095abc2ae37c9020eeb3ea7af2b87cd16f3c1de /src/rspamadm/lua_repl.c
parentb13907192f14c0a5171b225c21ffbcedfec3d501 (diff)
downloadrspamd-3f00d108df7c99edd5cb45e34d232a80e159caa3.tar.gz
rspamd-3f00d108df7c99edd5cb45e34d232a80e159caa3.zip
[Project] Adopt plugins, workers, rspamadm and rspamc for http_context
Diffstat (limited to 'src/rspamadm/lua_repl.c')
-rw-r--r--src/rspamadm/lua_repl.c5
1 files changed, 3 insertions, 2 deletions
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,