From 84e0d5df1a975dd0ebbe27654e513895d4a7e691 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Wed, 5 Oct 2016 17:49:49 +0300 Subject: [PATCH] [Fix] Unbreak once_received skipping for local networks --- src/plugins/lua/once_received.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 202041869..82d044c19 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -64,7 +64,7 @@ local function check_quantity_received (task) local task_ip = task:get_ip() if ((not check_user and task:get_user()) or - (not check_local and ip_addr and ip_addr:is_local())) then + (not check_local and task_ip and task_ip:is_local())) then rspamd_logger.infox(task, 'Skipping once_received for authenticated user or local network') return end -- 2.39.5