From 142d36fbc6adb9dabaafd0bb6265ebadfed42821 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 29 Mar 2014 16:18:54 -0700 Subject: Fix hfilter. --- conf/lua/hfilter.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua index 775b59e04..f7c0751ed 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() -- cgit v1.2.3