diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-03 17:13:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-03 17:13:24 +0000 |
commit | fbce349729b85fd5b6ded13d50674bc3cd758871 (patch) | |
tree | c6fea5d0d83e2d592e1ab4bff3c28002276dc3c8 /src/libserver | |
parent | fcefb0a6d71faaa1b47f5f5f6a3961d41e94cfc3 (diff) | |
download | rspamd-fbce349729b85fd5b6ded13d50674bc3cd758871.tar.gz rspamd-fbce349729b85fd5b6ded13d50674bc3cd758871.zip |
Add local_addrs/local_networks option
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/cfg_rcl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index ff349e75e..c0daef15e 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1604,6 +1604,18 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) G_STRUCT_OFFSET (struct rspamd_config, max_cores_count), RSPAMD_CL_FLAG_INT_SIZE, "Limit of files count in `cores_dir`"); + rspamd_rcl_add_default_handler (sub, + "local_addrs", + rspamd_rcl_parse_struct_string, + G_STRUCT_OFFSET (struct rspamd_config, local_addrs), + 0, + "Use the specified addresses as local ones"); + rspamd_rcl_add_default_handler (sub, + "local_networks", + rspamd_rcl_parse_struct_string, + G_STRUCT_OFFSET (struct rspamd_config, local_addrs), + 0, + "Use the specified addresses as local ones (alias for `local_addrs`)"); /* New DNS configuration */ ssub = rspamd_rcl_add_section_doc (&sub->subsections, "dns", NULL, NULL, |