From 69a91952430724e285ac593468f6d65d76f23c2c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 5 Feb 2022 01:36:10 +0100 Subject: util.startup: Enable DANE in http client library with use_dane --- util/startup.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util') 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() -- cgit v1.2.3