Skip to content

Commit

Permalink
[Minor] RBL: Fix what types
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 24, 2019
1 parent cd4e5e1 commit 158fa72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/lua/rbl.lua
Expand Up @@ -490,7 +490,7 @@ local function gen_rbl_callback(rule)
if (ip:get_version() == 6 and rule.ipv6) or
(ip:get_version() == 4 and rule.ipv4) then
add_dns_request(task, ip, true, true,
requests_table, 'from_ip',
requests_table, 'from',
whitelist)
end

Expand All @@ -508,7 +508,7 @@ local function gen_rbl_callback(rule)
for pos,rh in ipairs(received) do
if check_conditions(rh, pos) then
add_dns_request(task, rh.real_ip, false, true,
requests_table, 'rcvd',
requests_table, 'received',
whitelist)
end
end
Expand Down Expand Up @@ -610,7 +610,7 @@ local function gen_rbl_callback(rule)
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
check_email_table(task, rt[1], requests_table, whitelist, 'email replyto')
check_email_table(task, rt[1], requests_table, whitelist, 'replyto')
end
end

Expand Down

0 comments on commit 158fa72

Please sign in to comment.