commit 36b8fd5: [Minor] Fix vault path

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Apr 30 15:56:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-30 16:49:41 +0100
URL: https://github.com/rspamd/rspamd/commit/36b8fd55cd08a825443d3710467bd18de11faa95 (HEAD -> master)

[Minor] Fix vault path

---
 lualib/lua_dkim_tools.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index 3ef2eec30..d98ed10f9 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -562,8 +562,8 @@ exports.sign_using_vault = function(N, task, settings, selectors, sign_func, err
   local http = require "rspamd_http"
   local ucl = require "ucl"
 
-  local full_url = string.format('%s/v1/%s',
-      settings.vault_url, selectors.domain)
+  local full_url = string.format('%s/v1/%s/%s',
+      settings.vault_url, settings.vault_path or 'dkim', selectors.domain)
 
   local function vault_callback(err, code, body, _)
     if code ~= 200 then


More information about the Commits mailing list