# HG changeset patch # User Kim Alvefur # Date 1611268439 -3600 # Node ID 6bb2986783d0556a6fc6f1edb9d5ac61c3cf5806 # Parent d7f0dc727a47dc997b510420e0b3da8d634aeaec net.unbound: Fix to initialize under prosodyctl Lazy initialization only worked for async queries, but prosodyctl check dns uses sync queries. diff -r d7f0dc727a47 -r 6bb2986783d0 net/unbound.lua --- a/net/unbound.lua Thu Jan 21 19:23:15 2021 +0100 +++ b/net/unbound.lua Thu Jan 21 23:33:59 2021 +0100 @@ -139,6 +139,7 @@ end local function lookup_sync(qname, qtype, qclass) + if not unbound then initialize(); end qtype = qtype and s_upper(qtype) or "A"; qclass = qclass and s_upper(qclass) or "IN"; local ntype, nclass = types[qtype], classes[qclass];