From 8bfb30b77a68d2809e30a3b81fc3e7c7aab17312 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 1 Oct 2014 16:18:34 +0100 Subject: [PATCH] Adopt controller. --- src/controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller.c b/src/controller.c index 1a82e6839..da0a8c31c 100644 --- a/src/controller.c +++ b/src/controller.c @@ -107,7 +107,7 @@ struct rspamd_controller_worker_ctx { gchar *ssl_key; /* A map of secure IP */ gchar *secure_ip; - radix_tree_t *secure_map; + radix_compressed_t *secure_map; /* Static files dir */ gchar *static_files_dir; @@ -143,7 +143,7 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry, msg_info ("allow unauthorized connection from a unix socket"); return TRUE; } - else if (ctx->secure_map && radix32_tree_find_addr (ctx->secure_map, + else if (ctx->secure_map && radix_find_compressed_addr (ctx->secure_map, &session->from_addr) != RADIX_NO_VALUE) { msg_info ("allow unauthorized connection from a trusted IP %s", rspamd_inet_address_to_string (&session->from_addr)); -- 2.39.5