diff options
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r-- | src/plugins/lua/once_received.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index a7b2a2655..0de235c01 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -28,10 +28,12 @@ function check_quantity_received (task) for _,h in ipairs(bad_hosts) do if string.find(hn, h) then -- Check for good hostname - for _,gh in ipairs(good_hosts) do - if string.find(hn, gh) then - i = false - break + if good_hosts then + for _,gh in ipairs(good_hosts) do + if string.find(hn, gh) then + i = false + break + end end end if i then |