From 2efbc6835d64c490cfb87047554ef7b4541a1e1c Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 25 Nov 2013 20:48:08 +0200 Subject: [PATCH] Properly check for empty source IP --- 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 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 -- 2.39.5