summaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-25 13:40:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-25 13:40:00 +0100
commit9919068fcd7e999502ec62cc1fd2b794e5ced55b (patch)
tree4dc488bf5d33a94632e958753ed1da7f97b8b809 /src/libutil/util.c
parentf0448d158b9858294a5cd54d3b2fab15193f1485 (diff)
downloadrspamd-9919068fcd7e999502ec62cc1fd2b794e5ced55b.tar.gz
rspamd-9919068fcd7e999502ec62cc1fd2b794e5ced55b.zip
[Feature] Use new ip parsing API
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index f3effe5cf..196c54222 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -2085,16 +2085,8 @@ rspamd_config_libs (struct rspamd_external_libs_ctx *ctx,
if (ctx != NULL) {
if (cfg->local_addrs) {
- if (ucl_object_type (cfg->local_addrs) == UCL_STRING &&
- !rspamd_map_is_map (ucl_object_tostring (cfg->local_addrs))) {
- radix_add_generic_iplist (ucl_object_tostring (cfg->local_addrs),
- (radix_compressed_t **)ctx->local_addrs);
- }
- else {
- rspamd_map_add_from_ucl (cfg, cfg->local_addrs,
- "Local addresses", rspamd_radix_read, rspamd_radix_fin,
- (void **) ctx->local_addrs);
- }
+ rspamd_config_radix_from_ucl (cfg, cfg->local_addrs, "Local addresses",
+ ctx->local_addrs, NULL);
}
if (cfg->ssl_ca_path) {