diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-27 13:54:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-27 13:54:00 +0000 |
commit | 3c1866666fc1adf5bfb57f21eed7f1b89ffec79e (patch) | |
tree | d3e2707940af5a5392c4403d214a25a4ad0f541b /conf/lua | |
parent | dbf377ae0bdeffc0c060c3efee097ff5780b3e58 (diff) | |
download | rspamd-3c1866666fc1adf5bfb57f21eed7f1b89ffec79e.tar.gz rspamd-3c1866666fc1adf5bfb57f21eed7f1b89ffec79e.zip |
Several fixes to hfilter module.
Diffstat (limited to 'conf/lua')
-rw-r--r-- | conf/lua/hfilter.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua index 8fb8a1e74..b68061143 100644 --- a/conf/lua/hfilter.lua +++ b/conf/lua/hfilter.lua @@ -192,7 +192,7 @@ local function hfilter(task) -- Check's HELO local checks_hello_found = false - if helo then + if helo then -- Regexp check HELO for regexp,weight in pairs(checks_hello) do if check_regexp(helo_lower, regexp) then @@ -212,7 +212,9 @@ local function hfilter(task) end --FQDN check HELO - check_host(task, helo, 'HELO', ip, hostname) + if ip then + check_host(task, helo, 'HELO', ip, hostname) + end end -- @@ -239,7 +241,7 @@ local function hfilter(task) end else task:insert_result('HFILTER_HOSTNAME_NOPTR', 1.00) - if not checks_hello_found then + if ip and not checks_hello_found then task:get_resolver():resolve_ptr(task:get_session(), task:get_mempool(), ip, hfilter_hostname_ptr) end end |