aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-06 12:41:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-06 12:41:35 +0000
commit7c62f28bbef9673564c69e088b8d9885e1de2d9b (patch)
treec73c723239f6ba60c10bfaf736f343bfbee9a639 /src/controller.c
parentc2a96a8942cd3f6cc7efe418ebca580014bab5da (diff)
downloadrspamd-7c62f28bbef9673564c69e088b8d9885e1de2d9b.tar.gz
rspamd-7c62f28bbef9673564c69e088b8d9885e1de2d9b.zip
[Feature] Send config id to the WebUI
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 78c397c80..c5bfe17e4 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -690,6 +690,8 @@ rspamd_controller_handle_auth (struct rspamd_http_connection_entry *conn_ent,
st->messages_learned), "learned", 0, false);
ucl_object_insert_key (obj, ucl_object_frombool (!session->is_enable),
"read_only", 0, false);
+ ucl_object_insert_key (obj, ucl_object_fromstring (session->ctx->cfg->checksum),
+ "config_id", 0, false);
rspamd_controller_send_ucl (conn_ent, obj);
ucl_object_unref (obj);