From 6a44267b05002181b5d1578b45e691d7baff837f Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Thu, 18 Feb 2016 10:37:08 +0300 Subject: [PATCH] Unbreak bad_hosts check --- src/plugins/lua/once_received.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 7d5d5edbb1..a5c65f9909 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 -- 2.47.3