aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-27 18:42:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-27 18:42:04 +0100
commit3bb4e1cd86c65a854bcfe4e7d0bb0a1c64347fc7 (patch)
treec21bfdd8b22b341608b160643b5d1a06ca6c87d1 /src/libserver/cfg_utils.c
parent79052d53a490c8f1122f15e5e75465c6653d9b1a (diff)
downloadrspamd-3bb4e1cd86c65a854bcfe4e7d0bb0a1c64347fc7.tar.gz
rspamd-3bb4e1cd86c65a854bcfe4e7d0bb0a1c64347fc7.zip
[Feature] Allow hostnames in IP maps
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 34029664b..7967b297f 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -1676,7 +1676,7 @@ rspamd_config_radix_from_ucl (struct rspamd_config *cfg,
}
else {
/* Just a list */
- if (!radix_add_generic_iplist (str, target)) {
+ if (!radix_add_generic_iplist (str, target, TRUE)) {
g_set_error (err, g_quark_from_static_string ("rspamd-config"),
EINVAL, "bad map definition %s for %s", str,
ucl_object_key (obj));
@@ -1699,7 +1699,7 @@ rspamd_config_radix_from_ucl (struct rspamd_config *cfg,
while ((cur = ucl_iterate_object (cur_elt, &it, true)) != NULL) {
str = ucl_object_tostring (cur);
- if (str == NULL || !radix_add_generic_iplist (str, target)) {
+ if (str == NULL || !radix_add_generic_iplist (str, target, TRUE)) {
g_set_error (err, g_quark_from_static_string ("rspamd-config"),
EINVAL, "bad map element %s for %s", str,
ucl_object_key (obj));