# HG changeset patch # User Kim Alvefur # Date 1644021370 -3600 # Node ID 10447f940fec74c2f4209de7c38985bd7c159a80 # Parent c0f49a4026f8c4ef43fd856844961be6cb79f21a util.startup: Enable DANE in http client library with use_dane diff -r c0f49a4026f8 -r 10447f940fec 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()