aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/controller.c b/src/controller.c
index be2225167..4265000a4 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -1687,13 +1687,6 @@ start_controller_worker (struct rspamd_worker *worker)
rspamd_http_router_set_key (ctx->http, ctx->key);
}
- g_hash_table_iter_init (&iter, ctx->custom_commands);
- while (g_hash_table_iter_next (&iter, &key, &value)) {
- rspamd_http_router_add_path (ctx->http,
- key,
- rspamd_controller_handle_custom);
- }
-
g_hash_table_iter_init (&iter, ctx->cfg->c_modules);
while (g_hash_table_iter_next (&iter, &key, &value)) {
mctx = value;
@@ -1703,6 +1696,14 @@ start_controller_worker (struct rspamd_worker *worker)
}
}
+ g_hash_table_iter_init (&iter, ctx->custom_commands);
+ while (g_hash_table_iter_next (&iter, &key, &value)) {
+ rspamd_http_router_add_path (ctx->http,
+ key,
+ rspamd_controller_handle_custom);
+ }
+
+
ctx->resolver = dns_resolver_init (worker->srv->logger,
ctx->ev_base,
worker->srv->cfg);