]> source.dussan.org Git - rspamd.git/commitdiff
Fix identification of missing source IP
authorAndrew Lewis <nerf@judo.za.org>
Wed, 20 Nov 2013 18:52:48 +0000 (20:52 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 20 Nov 2013 18:52:48 +0000 (20:52 +0200)
src/plugins/lua/rbl.lua

index 4eed1e1c1d20601808566e4fb6fed2ebfe13c791..e0284c354e5971058d224d2455abffa066ce3c52 100644 (file)
@@ -36,7 +36,7 @@ local function rbl_cb (task)
        end
 
        local rip = task:get_from_ip()
-       if(rip ~= nil) then
+       if(rip ~= "0.0.0.0") then
                for _,rbl in pairs(rbls) do
                        task:get_resolver():resolve_a(task:get_session(), task:get_mempool(), 
                                ip_to_rbl(rip, rbl['rbl']), rbl_dns_cb, rbl['symbol'])