aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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