aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-26 14:52:29 +0100
committerGitHub <noreply@github.com>2018-06-26 14:52:29 +0100
commitf16ae1bbd43346b8fb2d79b0fd476c771b32a7cc (patch)
treead0d2a09622e46e691c19db86e6a942d184bd5c7 /src
parent6482ab98076d2a888382b6daef2abc7f64452b4a (diff)
parentcadbc3d724e69ac57232c22efce3d07f6737f5da (diff)
downloadrspamd-f16ae1bbd43346b8fb2d79b0fd476c771b32a7cc.tar.gz
rspamd-f16ae1bbd43346b8fb2d79b0fd476c771b32a7cc.zip
Merge pull request #2307 from andy-igoshin/master
support for non-TLD domains
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/whitelist.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua
index 7637bb555..69c37c5dc 100644
--- a/src/plugins/lua/whitelist.lua
+++ b/src/plugins/lua/whitelist.lua
@@ -135,6 +135,9 @@ local function whitelist_cb(symbol, rule, task)
if tld then
found, mult = find_domain(tld)
+ if not found then
+ found, mult = find_domain(val)
+ end
end
end
end, dkim_opts)