]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix vault path
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Apr 2019 15:49:41 +0000 (16:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Apr 2019 15:49:41 +0000 (16:49 +0100)
lualib/lua_dkim_tools.lua

index 3ef2eec306ff2e2832b51204006b780b54289f8e..d98ed10f9b1bcaa569fce19587f50f453d69506b 100644 (file)
@@ -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