From a5c51c24d5366b2b7e48438f1140105bd228c984 Mon Sep 17 00:00:00 2001 From: Andrey Igoshin Date: Fri, 21 Sep 2018 15:11:04 +0300 Subject: [PATCH] support for non-TLD domains --- src/plugins/lua/whitelist.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index 69c37c5dcd..25add8c987 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -161,6 +161,9 @@ local function whitelist_cb(symbol, rule, task) if tld then found, mult = find_domain(tld) + if not found then + found, mult = find_domain(from[1]['domain']) + end end end end -- 2.47.3