Bläddra i källkod

[Minor] RBL: Fix what types

tags/2.0
Vsevolod Stakhov 4 år sedan
förälder
incheckning
158fa72032
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      src/plugins/lua/rbl.lua

+ 3
- 3
src/plugins/lua/rbl.lua Visa fil

if (ip:get_version() == 6 and rule.ipv6) or if (ip:get_version() == 6 and rule.ipv6) or
(ip:get_version() == 4 and rule.ipv4) then (ip:get_version() == 4 and rule.ipv4) then
add_dns_request(task, ip, true, true, add_dns_request(task, ip, true, true,
requests_table, 'from_ip',
requests_table, 'from',
whitelist) whitelist)
end end


for pos,rh in ipairs(received) do for pos,rh in ipairs(received) do
if check_conditions(rh, pos) then if check_conditions(rh, pos) then
add_dns_request(task, rh.real_ip, false, true, add_dns_request(task, rh.real_ip, false, true,
requests_table, 'rcvd',
requests_table, 'received',
whitelist) whitelist)
end end
end end
lua_util.debugm(N, task, 'check replyto %s', rt[1]) lua_util.debugm(N, task, 'check replyto %s', rt[1])


if rt and rt[1] and (rt[1].addr and #rt[1].addr > 0) then if rt and rt[1] and (rt[1].addr and #rt[1].addr > 0) then
check_email_table(task, rt[1], requests_table, whitelist, 'email replyto')
check_email_table(task, rt[1], requests_table, whitelist, 'replyto')
end end
end end



Laddar…
Avbryt
Spara