]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Send config id to the WebUI
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Jan 2017 12:41:35 +0000 (12:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Jan 2017 12:41:35 +0000 (12:41 +0000)
src/controller.c

index 78c397c8065d60bb1456fbef249b715578951f72..c5bfe17e40a0ec7825297859db546124d4fdc829 100644 (file)
@@ -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);