util.startup: Enable DANE in http client library with use_dane
authorKim Alvefur <zash@zash.se>
Sat, 05 Feb 2022 01:36:10 +0100
changeset 12278 10447f940fec
parent 12277 c0f49a4026f8
child 12279 13624194984b
util.startup: Enable DANE in http client library with use_dane
util/startup.lua
--- a/util/startup.lua	Sat Feb 05 01:32:08 2022 +0100
+++ b/util/startup.lua	Sat Feb 05 01:36:10 2022 +0100
@@ -393,6 +393,7 @@
 	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()