diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-10-05 17:49:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-05 17:49:49 +0300 |
commit | 84e0d5df1a975dd0ebbe27654e513895d4a7e691 (patch) | |
tree | ed2fcb83c71d096c226a165e3b6f27d51321e653 /src/plugins/lua/once_received.lua | |
parent | b89a7948754caad625bbe7208eab0ad3e8af1035 (diff) | |
download | rspamd-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.lua | 2 |
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 |