]> source.dussan.org Git - rspamd.git/commitdiff
support for non-TLD domains 2516/head
authorAndrey Igoshin <ai@vsu.ru>
Fri, 21 Sep 2018 12:11:04 +0000 (15:11 +0300)
committerAndrey Igoshin <ai@vsu.ru>
Fri, 21 Sep 2018 12:11:04 +0000 (15:11 +0300)
src/plugins/lua/whitelist.lua

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