From 3dfd703101b45ede6190e6f5dd51d27c94769356 Mon Sep 17 00:00:00 2001 From: Alexey Date: Sat, 5 Apr 2014 01:33:13 -0700 Subject: Hfilter: small fixes --- conf/lua/hfilter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua index f7c0751ed..a619e8f87 100644 --- a/conf/lua/hfilter.lua +++ b/conf/lua/hfilter.lua @@ -1,5 +1,5 @@ -- --- Copyright (c) 2013, Alexey Savelyev +-- Copyright (c) 2013-2014, Alexey Savelyev -- E-mail: info@homeweb.ru -- WWW: http://homeweb.ru -- @@ -161,7 +161,7 @@ local function hfilter(task) --IP-- local ip = false local rip = task:get_from_ip() - if rip:is_valid() then + if rip and rip:is_valid() then ip = rip:to_string() end -- cgit v1.2.3