]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix vault URL
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 28 Apr 2019 08:35:17 +0000 (09:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 28 Apr 2019 08:35:17 +0000 (09:35 +0100)
lualib/lua_dkim_tools.lua

index 2e5856d3c6bc6535f0c41a77906efbdfa32d4f17..6220c01628fc3f74cd406f8455edcfbf7dc39385 100644 (file)
@@ -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