aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-10-05 17:49:49 +0300
committerGitHub <noreply@github.com>2016-10-05 17:49:49 +0300
commit84e0d5df1a975dd0ebbe27654e513895d4a7e691 (patch)
treeed2fcb83c71d096c226a165e3b6f27d51321e653 /src/plugins/lua/once_received.lua
parentb89a7948754caad625bbe7208eab0ad3e8af1035 (diff)
downloadrspamd-84e0d5df1a975dd0ebbe27654e513895d4a7e691.tar.gz
rspamd-84e0d5df1a975dd0ebbe27654e513895d4a7e691.zip
[Fix] Unbreak once_received skipping for local networks
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua2
1 files changed, 1 insertions, 1 deletions
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