Diff

util/startup.lua @ 12274:10447f940fec

util.startup: Enable DANE in http client library with use_dane
author Kim Alvefur <zash@zash.se>
date Sat, 05 Feb 2022 01:36:10 +0100
parent 12244:858d40d675ee
child 12294:81f147ddc4ab
line wrap: on
line diff
--- 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()