aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-01 14:46:42 +0100
committerKim Alvefur <zash@zash.se>2022-02-01 14:46:42 +0100
commit4973762abb8302619cc3cea7458c81ffd1f56a27 (patch)
treeb5bc39f6385fce0de94fcb775c4662309d85c038 /util
parentb5a932e77f3e514eab7d964769a09cf29eeb0682 (diff)
downloadprosody-4973762abb8302619cc3cea7458c81ffd1f56a27.tar.gz
prosody-4973762abb8302619cc3cea7458c81ffd1f56a27.zip
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...
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl/check.lua2
1 files changed, 1 insertions, 1 deletions
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;