diff options
author | Andrey Igoshin <ai@vsu.ru> | 2018-06-24 14:24:35 +0300 |
---|---|---|
committer | Andrey Igoshin <ai@vsu.ru> | 2018-06-24 14:24:35 +0300 |
commit | cadbc3d724e69ac57232c22efce3d07f6737f5da (patch) | |
tree | 9ff2845a121bbb7aa2eac61d55d29c984ea42332 | |
parent | 56d21aff0ef37216e17f2b115439a11ec3855588 (diff) | |
download | rspamd-cadbc3d724e69ac57232c22efce3d07f6737f5da.tar.gz rspamd-cadbc3d724e69ac57232c22efce3d07f6737f5da.zip |
support for non-TLD domains
-rw-r--r-- | src/plugins/lua/whitelist.lua | 3 |
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) |