From: Andrey Igoshin Date: Fri, 21 Sep 2018 12:11:04 +0000 (+0300) Subject: support for non-TLD domains X-Git-Tag: 1.8.0~42^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2516%2Fhead;p=thirdparty%2Frspamd.git support for non-TLD domains --- 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