diff options
author | Alexey <AlexeySa@users.noreply.github.com> | 2014-01-22 10:07:39 -0800 |
---|---|---|
committer | Alexey <AlexeySa@users.noreply.github.com> | 2014-01-22 10:07:39 -0800 |
commit | befe7bb7d7fff8fea6d86dea51428a1f6be4df57 (patch) | |
tree | 413ad4cbf5989b3adaa10f4a0f0d383dabde83ae /src | |
parent | 199b32be13c152cd501a772d23c25f45605b6cff (diff) | |
download | rspamd-befe7bb7d7fff8fea6d86dea51428a1f6be4df57.tar.gz rspamd-befe7bb7d7fff8fea6d86dea51428a1f6be4df57.zip |
Fix hostname lookup for rdns rbl
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/rbl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |