From: Vsevolod Stakhov Date: Sat, 29 Mar 2014 23:18:54 +0000 (-0700) Subject: Fix hfilter. X-Git-Tag: 0.7.0~341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=142d36fbc6adb9dabaafd0bb6265ebadfed42821;p=thirdparty%2Frspamd.git Fix hfilter. --- diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua index 775b59e042..f7c0751edd 100644 --- a/conf/lua/hfilter.lua +++ b/conf/lua/hfilter.lua @@ -161,12 +161,9 @@ local function hfilter(task) --IP-- local ip = false local rip = task:get_from_ip() - if rip then - ip = rip:to_string() - if ip and (ip == '0.0.0.0' or ip == '::') then - ip = false - end - end + if rip:is_valid() then + ip = rip:to_string() + end --HOSTNAME-- local hostname = task:get_hostname()