]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Arc: Another bunch of fixes for arc signing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 May 2019 09:52:35 +0000 (10:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 May 2019 09:52:35 +0000 (10:52 +0100)
src/plugins/lua/arc.lua

index 9e6cf1cac6497716bfff7ec0f3eab0a7efecadd7..11b6adccf13df5979331916a2b7642f50ed9453b 100644 (file)
@@ -614,10 +614,7 @@ local function arc_signing_cb(task)
           end
         end
 
-        local dret, hdr = dkim_sign(task, p)
-        if dret then
-          return arc_sign_seal(task, p, hdr)
-        end
+        do_sign(task, p)
       else
         rspamd_logger.infox(task, 'key path or dkim selector unconfigured; no signing')
         return false
@@ -652,6 +649,8 @@ if settings.use_redis then
         'but module is configured to load keys from redis, disable arc signing')
     return
   end
+
+  settings.redis_params = redis_params
 end
 
 rspamd_config:register_symbol({