diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-01 17:35:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-01 17:35:47 +0100 |
commit | 6f8fa405cf5d394491b987d824f5e1b74c14a4c8 (patch) | |
tree | 461a516b628265e9e4767f890f13766218535b41 /src/libserver | |
parent | ebdf58dc0aed1014374dc56c0b28fe76f3b0c0b1 (diff) | |
download | rspamd-6f8fa405cf5d394491b987d824f5e1b74c14a4c8.tar.gz rspamd-6f8fa405cf5d394491b987d824f5e1b74c14a4c8.zip |
Rework parsing of ip lists.
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/cfg_file.h | 6 | ||||
-rw-r--r-- | src/libserver/cfg_utils.c | 10 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 7e3d60db8..c08fe0c80 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -476,12 +476,6 @@ struct rspamd_classifier_config * rspamd_config_find_classifier ( struct rspamd_config *cfg, const gchar *name); -/* - * Parse input `ip_list` to radix tree `tree`. Now supports only IPv4 addresses. - */ -gboolean rspamd_config_parse_ip_list (const gchar *ip_list, - radix_compressed_t **tree); - void rspamd_ucl_add_conf_macros (struct ucl_parser *parser, struct rspamd_config *cfg); diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index aecef53d4..f7285d5ed 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -1004,16 +1004,6 @@ rspamd_ucl_fin_cb (rspamd_mempool_t * pool, struct map_cb_data *data) } } -gboolean -rspamd_config_parse_ip_list (const gchar *ip_list, radix_compressed_t **tree) -{ - if (*tree == NULL) { - *tree = radix_create_compressed (); - } - - return (rspamd_radix_add_iplist (ip_list, ",; ", *tree) > 0); -} - /* * vi:ts=4 */ |