aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Igoshin <ai@vsu.ru>2018-06-24 14:24:35 +0300
committerAndrey Igoshin <ai@vsu.ru>2018-06-24 14:24:35 +0300
commitcadbc3d724e69ac57232c22efce3d07f6737f5da (patch)
tree9ff2845a121bbb7aa2eac61d55d29c984ea42332
parent56d21aff0ef37216e17f2b115439a11ec3855588 (diff)
downloadrspamd-cadbc3d724e69ac57232c22efce3d07f6737f5da.tar.gz
rspamd-cadbc3d724e69ac57232c22efce3d07f6737f5da.zip
support for non-TLD domains
-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)