aboutsummaryrefslogtreecommitdiffstats
path: root/util/startup.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-05 01:36:10 +0100
committerKim Alvefur <zash@zash.se>2022-02-05 01:36:10 +0100
commit69a91952430724e285ac593468f6d65d76f23c2c (patch)
tree6a1445a3031e413d12b0e321bc04d910e3e5e8d1 /util/startup.lua
parent4441528b1f7578397e313ce49f623bdf33003f92 (diff)
downloadprosody-69a91952430724e285ac593468f6d65d76f23c2c.tar.gz
prosody-69a91952430724e285ac593468f6d65d76f23c2c.zip
util.startup: Enable DANE in http client library with use_dane
Diffstat (limited to 'util/startup.lua')
-rw-r--r--util/startup.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/startup.lua b/util/startup.lua
index f6c931dd..2d06f783 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -393,6 +393,7 @@ function startup.init_http_client()
local https_client = config.get("*", "client_https_ssl")
http.default.options.sslctx = require "core.certmanager".create_context("client_https port 0", "client",
{ capath = config_ssl.capath, cafile = config_ssl.cafile, verify = "peer", }, https_client);
+ http.default.options.use_dane = config.get("*", "use_dane")
end
function startup.init_promise()