From 319d3bfc5cfdfef95f3268d128655a88d3fda13d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Jan 2016 08:38:35 +0000 Subject: [PATCH] Allow authorized IP without forwarded Issue: #488 --- src/controller.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller.c b/src/controller.c index 32cf4d352..ced9b9ca0 100644 --- a/src/controller.c +++ b/src/controller.c @@ -416,6 +416,7 @@ static gboolean rspamd_controller_check_password( else if (ret == 0) { /* No forwarded found */ msg_info_session ("allow unauthorized connection from a unix socket"); + return TRUE; } } else if (ctx->secure_map @@ -430,6 +431,7 @@ static gboolean rspamd_controller_check_password( /* No forwarded found */ msg_info_session ("allow unauthorized connection from a trusted IP %s", rspamd_inet_address_to_string (session->from_addr)); + return TRUE; } } -- 2.39.5