From 46b96c87b283858b284798dd8a3959c831a09311 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 15 Aug 2016 10:48:36 +0100 Subject: [PATCH] [Fix] Add sanity check for url filters --- src/plugins/lua/multimap.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 5976a7c5a..31cd01d50 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -60,6 +60,10 @@ local function apply_hostname_filter(task, filter, hostname, r) end local function apply_url_filter(task, filter, url, r) + if not filter then + return url:get_host() + end + if filter == 'tld' then return url:get_tld() elseif filter == 'full' then -- 2.39.5