From: Vsevolod Stakhov Date: Wed, 20 Jan 2016 08:38:35 +0000 (+0000) Subject: Allow authorized IP without forwarded X-Git-Tag: 1.1.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319d3bfc5cfdfef95f3268d128655a88d3fda13d;p=thirdparty%2Frspamd.git Allow authorized IP without forwarded Issue: #488 --- diff --git a/src/controller.c b/src/controller.c index 32cf4d3520..ced9b9ca0b 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; } }