diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-27 16:47:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-27 16:47:05 +0000 |
commit | 12e4ec8a6ef2f17f0de4bd1ccb5905634e0fd824 (patch) | |
tree | 47be0061f71d99bd7ee6bec4ed1b9b264f3d7f84 /src/plugins/surbl.c | |
parent | 79828e25c87118012b2ff432f29ba5a4a6b7ebe3 (diff) | |
download | rspamd-12e4ec8a6ef2f17f0de4bd1ccb5905634e0fd824.tar.gz rspamd-12e4ec8a6ef2f17f0de4bd1ccb5905634e0fd824.zip |
Add alias for 'options = noip' as 'no_ip = true'
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r-- | src/plugins/surbl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index d0424238d..361a3780c 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -480,12 +480,20 @@ surbl_module_config (struct rspamd_config *cfg) surbl_module_ctx->surbl_pool, ucl_obj_tostring (cur)); } + cur = ucl_obj_get_key (cur_rule, "options"); if (cur != NULL && cur->type == UCL_STRING) { if (strstr (ucl_obj_tostring (cur), "noip") != NULL) { new_suffix->options |= SURBL_OPTION_NOIP; } } + + cur = ucl_obj_get_key (cur_rule, "no_ip"); + if (cur != NULL && cur->type == UCL_STRING) { + if (ucl_object_toboolean (cur)) { + new_suffix->options |= SURBL_OPTION_NOIP; + } + } cur = ucl_obj_get_key (cur_rule, "resolve_ip"); if (cur != NULL && cur->type == UCL_BOOLEAN) { if (ucl_object_toboolean (cur)) { |