aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2013-11-25 20:48:08 +0200
committerAndrew Lewis <nerf@judo.za.org>2013-11-25 20:48:08 +0200
commit2efbc6835d64c490cfb87047554ef7b4541a1e1c (patch)
tree53206abbec5ab5d40b808207d05cac62aede91a2
parentd22d24ca4cdfa93d5c04fda0331033f0d6a7f0e5 (diff)
downloadrspamd-2efbc6835d64c490cfb87047554ef7b4541a1e1c.tar.gz
rspamd-2efbc6835d64c490cfb87047554ef7b4541a1e1c.zip
Properly check for empty source IP
-rw-r--r--src/plugins/lua/rbl.lua2
1 files changed, 1 insertions, 1 deletions
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