]> source.dussan.org Git - rspamd.git/commitdiff
support for non-TLD domains 2307/head
authorAndrey Igoshin <ai@vsu.ru>
Sun, 24 Jun 2018 11:24:35 +0000 (14:24 +0300)
committerAndrey Igoshin <ai@vsu.ru>
Sun, 24 Jun 2018 11:24:35 +0000 (14:24 +0300)
src/plugins/lua/whitelist.lua

index 7637bb5553202eb8f30ab1dc790dad864c8e4f73..69c37c5dcdb42658c2820e9769939c151f500924 100644 (file)
@@ -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)