From 1485bf2c42c3104696ec3a6c5e61ebe627a71c21 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 12 Feb 2020 15:02:41 +0000 Subject: [Rework] Move local IPs check --- src/plugins/dkim_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') 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); -- cgit v1.2.3