diff options
author | John McKay <adenosine3p@gmail.com> | 2019-01-26 11:27:15 +0000 |
---|---|---|
committer | John McKay <adenosine3p@gmail.com> | 2019-02-02 05:41:41 +0000 |
commit | d4b0d4617b022a2f6e037c027e35d04c9d8544d7 (patch) | |
tree | c02702f3486d4ef5945aa717062fd289a4263fc8 /src/plugins/lua/arc.lua | |
parent | a92c5d43ef34b657bba4a2e201c3b11ded14e9e9 (diff) | |
download | rspamd-d4b0d4617b022a2f6e037c027e35d04c9d8544d7.tar.gz rspamd-d4b0d4617b022a2f6e037c027e35d04c9d8544d7.zip |
keys from config and http arrayized
Diffstat (limited to 'src/plugins/lua/arc.lua')
-rw-r--r-- | src/plugins/lua/arc.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index cec738df7..d22114b59 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -514,6 +514,16 @@ local function arc_signing_cb(task) return end + -- TODO: support multiple signatures here and not this hack + if #p.keys > 0 then + p.selector = p.keys[1].selector + if p.keys[1].type == "raw" then + p.rawkey = p.keys[1].key + else + p.key = p.keys[1].key + end + end + p.arc_cv = 'none' p.arc_idx = 1 p.no_cache = true |