]> source.dussan.org Git - rspamd.git/commitdiff
Add control_path option.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Oct 2015 17:50:58 +0000 (18:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Oct 2015 17:50:58 +0000 (18:50 +0100)
src/libserver/cfg_file.h
src/libserver/cfg_rcl.c

index 6ce3f58f7e22620a22b782af06325dda22f11fd3..44b91505d80a7fb5837e0f0abdca3fe42aeec197 100644 (file)
@@ -175,6 +175,7 @@ struct rspamd_config {
        gchar *cfg_name;                                /**< name of config file                                                                */
        gchar *pid_file;                                /**< name of pid file                                                                   */
        gchar *temp_dir;                                /**< dir for temp files                                                                 */
+       gchar *control_socket_path;                     /**< path to the control socket                                                 */
 #ifdef WITH_GPERF_TOOLS
        gchar *profile_path;
 #endif
index 57674aae399d9f4e43fe09df96d79315bc82a3a4..2e348c780f31898f7be7be977a532874153ac07c 100644 (file)
@@ -1295,6 +1295,11 @@ rspamd_rcl_config_init (void)
                rspamd_rcl_parse_struct_string_list,
                G_STRUCT_OFFSET (struct rspamd_config, classify_headers),
                0);
+       rspamd_rcl_add_default_handler (sub,
+               "control_socket",
+               rspamd_rcl_parse_struct_string,
+               G_STRUCT_OFFSET (struct rspamd_config, control_socket_path),
+               0);
 
        /* New DNS configuration */
        ssub = rspamd_rcl_add_section (&sub->subsections, "dns", NULL, NULL,