]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Unbreak once_received skipping for local networks 1008/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 5 Oct 2016 14:49:49 +0000 (17:49 +0300)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2016 14:49:49 +0000 (17:49 +0300)
src/plugins/lua/once_received.lua

index 2020418695eb4074ec1b3bdfdc29449e1b18cc3a..82d044c193e46b9cfd426f29dc6daccad1ad1bc1 100644 (file)
@@ -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