]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] One more default behaviour fix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 Mar 2021 18:31:01 +0000 (18:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 Mar 2021 18:31:01 +0000 (18:31 +0000)
src/plugins/lua/rbl.lua

index 9a2cf9a8b0ccf2ea591a6c0bab4290c2c1bd8ee5..f476932b0f795d7001bdda934bd5dc7fc831a9fe 100644 (file)
@@ -601,15 +601,10 @@ local function gen_rbl_callback(rule)
       local res = selector(task)
 
       if res and type(res) == 'table' then
-        if rule.selector_flatten then
-          add_dns_request(task, table.concat(res, ''), false, false,
-                  requests_table, selector_label, whitelist)
-        else
           for _,r in ipairs(res) do
             add_dns_request(task, r, false, false, requests_table,
                     selector_label, whitelist)
           end
-        end
       elseif res then
         add_dns_request(task, res, false, false,
                 requests_table, selector_label, whitelist)