From: Andrew Lewis Date: Mon, 25 Nov 2013 18:48:08 +0000 (+0200) Subject: Properly check for empty source IP X-Git-Tag: 0.6.0~13^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2efbc6835d64c490cfb87047554ef7b4541a1e1c;p=rspamd.git Properly check for empty source IP --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index d46e0a33d..86dba9900 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -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