summaryrefslogtreecommitdiffstats
path: root/src/plugins/dkim_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-12 15:02:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-12 15:02:41 +0000
commit1485bf2c42c3104696ec3a6c5e61ebe627a71c21 (patch)
treedaff0411f4abfe503975ae34f29f1c6628594819 /src/plugins/dkim_check.c
parenta84fef624d9de5faf21bcc393cb4156c4a65a010 (diff)
downloadrspamd-1485bf2c42c3104696ec3a6c5e61ebe627a71c21.tar.gz
rspamd-1485bf2c42c3104696ec3a6c5e61ebe627a71c21.zip
[Rework] Move local IPs check
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r--src/plugins/dkim_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index 9313b643f..da7e092f7 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -1144,7 +1144,7 @@ dkim_symbol_callback (struct rspamd_task *task,
/* First check if plugin should be enabled */
if ((!dkim_module_ctx->check_authed && task->user != NULL)
|| (!dkim_module_ctx->check_local &&
- rspamd_inet_address_is_local (task->from_addr, TRUE))) {
+ rspamd_ip_is_local_cfg (task->cfg, task->from_addr))) {
msg_info_task ("skip DKIM checks for local networks and authorized users");
rspamd_symcache_finalize_item (task, item);