diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-20 08:38:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-20 08:38:35 +0000 |
commit | 319d3bfc5cfdfef95f3268d128655a88d3fda13d (patch) | |
tree | d38349e94afa9d59de146150a52a3551ef4aaeb9 /src/controller.c | |
parent | 224207037055c8feaf1b8968a5807df0c5c9d60d (diff) | |
download | rspamd-319d3bfc5cfdfef95f3268d128655a88d3fda13d.tar.gz rspamd-319d3bfc5cfdfef95f3268d128655a88d3fda13d.zip |
Allow authorized IP without forwarded
Issue: #488
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |