Software /
code /
prosody
Changeset
12233:e4530bdbf5f3
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...
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 01 Feb 2022 14:46:42 +0100 |
parents | 12232:4f5f34a7f85a |
children | 12234:1c47162dd965 |
files | util/prosodyctl/check.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Mon Jan 31 17:07:12 2022 +0100 +++ b/util/prosodyctl/check.lua Tue Feb 01 14:46:42 2022 +0100 @@ -412,7 +412,7 @@ 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;