Browse Source

[Fix] received: filtering of artificial header

tags/3.5
Kako, Chang 1 year ago
parent
commit
6d5db1e04e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      rules/headers_checks.lua
  2. 1
    1
      src/plugins/lua/once_received.lua

+ 1
- 1
rules/headers_checks.lua View File

local nreceived = fun.reduce(function(acc, rcvd) local nreceived = fun.reduce(function(acc, rcvd)
return acc + 1 return acc + 1
end, 0, fun.filter(function(h) end, 0, fun.filter(function(h)
return not h['artificial']
return not h['flags']['artificial']
end, received)) end, received))


for k,v in pairs(cnts) do for k,v in pairs(cnts) do

+ 1
- 1
src/plugins/lua/once_received.lua View File

local nreceived = fun.reduce(function(acc, _) local nreceived = fun.reduce(function(acc, _)
return acc + 1 return acc + 1
end, 0, fun.filter(function(h) end, 0, fun.filter(function(h)
return not h['artificial']
return not h['flags']['artificial']
end, recvh)) end, recvh))


local function recv_dns_cb(_, to_resolve, results, err) local function recv_dns_cb(_, to_resolve, results, err)

Loading…
Cancel
Save