commit 26514fb: [Minor] Fix vault URL

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Apr 28 08:42:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-28 09:35:17 +0100
URL: https://github.com/rspamd/rspamd/commit/26514fb406b25d4373086a9d1d88f795f88f42d4 (HEAD -> master)

[Minor] Fix vault URL

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

diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index 2e5856d3c..6220c0162 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -556,7 +556,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 = settings.vault_url .. '/' .. selectors.domain
+  local full_url = string.format('%s/v1/%s',
+      settings.vault_url, selectors.domain)
 
   local function vault_callback(err, code, body, _)
     if code ~= 200 then


More information about the Commits mailing list