From: Alexander Moisseev Date: Wed, 5 Oct 2016 14:49:49 +0000 (+0300) Subject: [Fix] Unbreak once_received skipping for local networks X-Git-Tag: 1.4.0~312^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84e0d5df1a975dd0ebbe27654e513895d4a7e691;p=rspamd.git [Fix] Unbreak once_received skipping for local networks --- 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