]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add `trusted_ips` alias
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Mar 2016 09:55:14 +0000 (09:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Mar 2016 09:55:14 +0000 (09:55 +0000)
src/controller.c

index 66c2a35f9e1e702636002e30ae1e06a2360dec2e..1c26a802a5cc907d9bfb80429470a85ef6f74964 100644 (file)
@@ -2453,6 +2453,15 @@ init_controller_worker (struct rspamd_config *cfg)
                        0,
                        "List of IP addresses that are allowed for password-less access");
 
+       rspamd_rcl_register_worker_option (cfg,
+                       type,
+                       "trusted_ips",
+                       rspamd_rcl_parse_struct_string_list,
+                       ctx,
+                       G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx, secure_ip),
+                       0,
+                       "List of IP addresses that are allowed for password-less access");
+
        rspamd_rcl_register_worker_option (cfg,
                        type,
                        "static_dir",