]> source.dussan.org Git - rspamd.git/commitdiff
Properly check for empty source IP
authorAndrew Lewis <nerf@judo.za.org>
Mon, 25 Nov 2013 18:48:08 +0000 (20:48 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Mon, 25 Nov 2013 18:48:08 +0000 (20:48 +0200)
src/plugins/lua/rbl.lua

index d46e0a33dd0b92c2891218ec5347020143e08341..86dba990062009f9bfb55afcda3067a9987731c6 100644 (file)
@@ -78,7 +78,7 @@ local function rbl_cb (task)
        end
        
        local rip = task:get_from_ip()
-       if(rip ~= "0.0.0.0") then
+       if(rip:to_string() ~= "0.0.0.0") then
                for k,rbl in pairs(rbls) do
                        if (rip:get_version() == 6 and rbl['ipv6'] and rbl['from']) or 
                                (rip:get_version() == 4 and rbl['ipv4'] and rbl['from']) then