]> source.dussan.org Git - rspamd.git/commitdiff
Adopt controller.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Oct 2014 15:18:34 +0000 (16:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Oct 2014 15:18:34 +0000 (16:18 +0100)
src/controller.c

index 1a82e6839bd1f55aa8e2ace37a30ec341604a6dc..da0a8c31ce6e3f7f3446f49089924a4c584b5b7e 100644 (file)
@@ -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));