From 4973762abb8302619cc3cea7458c81ffd1f56a27 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 1 Feb 2022 14:46:42 +0100 Subject: util.prosodyctl.check: Fix reset of libunbound before DNS checks Probably worked anyway but settings might not always have been applied depending on what order things happens in. Error was hidden by the pcall, which was sorta intentional... --- util/prosodyctl/check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua index 06f44c06..b4e38056 100644 --- a/util/prosodyctl/check.lua +++ b/util/prosodyctl/check.lua @@ -412,7 +412,7 @@ local function check(arg) local unbound_config = configmanager.get("*", "unbound") or {}; unbound_config.hoststxt = false; -- don't look at /etc/hosts configmanager.set("*", "unbound", unbound_config); - unbound.purge(); -- ensure the above config is used + unbound.dns.purge(); -- ensure the above config is used dns = unbound.dns; end) local idna = require "util.encodings".idna; -- cgit v1.2.3