From cff3336f95b699db1942ebc2ded3f3df03a8554b Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 5 Aug 2016 16:10:11 +0100 Subject: [PATCH] [Minor] Fix multimap hostname check --- src/plugins/lua/multimap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 90d552a93..723a469e5 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -536,7 +536,7 @@ local function multimap_callback(task, rule) match_content(rule) elseif rt == 'hostname' then local hostname = task:get_hostname() - if hostname ~= 'unknown' then + if hostname and hostname ~= 'unknown' then match_hostname(rule, hostname) end end -- 2.39.5