/* Worker */
struct rspamd_worker *worker;
+
+ /* Local keypair */
+ gpointer key;
};
struct rspamd_controller_session {
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
static_files_dir), 0);
+ rspamd_rcl_register_worker_option (cfg, type, "keypair",
+ rspamd_rcl_parse_struct_keypair, ctx,
+ G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
+ key), 0);
+
return ctx;
}
PATH_COUNTERS,
rspamd_controller_handle_counters);
+ if (ctx->key) {
+ rspamd_http_router_set_key (ctx->http, ctx->key);
+ }
+
/* Attach plugins */
cur = g_list_first (ctx->cfg->filters);
while (cur) {