瀏覽代碼

[Fix] Unbreak once_received skipping for local networks

tags/1.4.0
Alexander Moisseev 7 年之前
父節點
當前提交
84e0d5df1a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/plugins/lua/once_received.lua

+ 1
- 1
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

Loading…
取消
儲存