From befe7bb7d7fff8fea6d86dea51428a1f6be4df57 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 22 Jan 2014 10:07:39 -0800 Subject: [PATCH] Fix hostname lookup for rdns rbl --- src/plugins/lua/rbl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index c180898d4..0dcc48e7b 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -78,7 +78,7 @@ local function rbl_cb (task) end local sender_dns = task:get_hostname() - if sender_dns ~= nil then + if sender_dns ~= nil and sender_dns ~= 'unknown' then for k,rbl in pairs(rbls) do if rbl['rdns'] then task:get_resolver():resolve_a(task:get_session(), task:get_mempool(), sender_dns .. '.' .. rbl['rbl'], rbl_dns_cb, k) -- 2.39.5