diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-10 15:19:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-10 16:06:30 +0000 |
commit | 087dcad963c1e39f9cbeb7d6d166de33eccf62ce (patch) | |
tree | ba23f877dcea373d0992507413acf062cd043a0e /src/plugins/spf.c | |
parent | 57df6d019a3b99c8a49e73b4ea4bbc0ff4086b91 (diff) | |
download | rspamd-087dcad963c1e39f9cbeb7d6d166de33eccf62ce.tar.gz rspamd-087dcad963c1e39f9cbeb7d6d166de33eccf62ce.zip |
[Fix] Do not use local_addrs in proxy
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index a3103d699..aa63c8018 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -557,7 +557,8 @@ spf_symbol_callback (struct rspamd_task *task, void *unused) } if ((!spf_module_ctx->check_authed && task->user != NULL) - || (!spf_module_ctx->check_local && rspamd_inet_address_is_local (task->from_addr))) { + || (!spf_module_ctx->check_local && + rspamd_inet_address_is_local (task->from_addr, TRUE))) { msg_info_task ("skip SPF checks for local networks and authorized users"); return; } |