diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-02-18 10:37:08 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-02-18 10:37:08 +0300 |
commit | 6a44267b05002181b5d1578b45e691d7baff837f (patch) | |
tree | ba868f1f155aa7009636ce83780665aa6755641e /src/plugins/lua/once_received.lua | |
parent | 0ac0e550a387085659c4c6556021da601d93aa34 (diff) | |
download | rspamd-6a44267b05002181b5d1578b45e691d7baff837f.tar.gz rspamd-6a44267b05002181b5d1578b45e691d7baff837f.zip |
Unbreak bad_hosts check
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r-- | src/plugins/lua/once_received.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 7d5d5edbb..a5c65f990 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -79,8 +79,9 @@ local function check_quantity_received (task) return end + local hn = nil if r['real_hostname'] then - local hn = string.lower(r['real_hostname']) + hn = string.lower(r['real_hostname']) -- Check for good hostname if hn and good_hosts then for _,gh in ipairs(good_hosts) do |