# HG changeset patch # User Kim Alvefur # Date 1593260757 -7200 # Node ID 3b9d533da8fe57f040abbd564697ea477a266983 # Parent 39991e40d1dc007969bb269fdc59cdd1e9097202 util.dependencies: Tone down lua-unbound dependency for now At least until packages are available Wording from MattJ diff -r 39991e40d1dc -r 3b9d533da8fe net/adns.lua --- a/net/adns.lua Fri Jun 26 16:41:31 2020 +0100 +++ b/net/adns.lua Sat Jun 27 14:25:57 2020 +0200 @@ -12,7 +12,8 @@ local log = require "util.logger".init("adns"); -log("warn", "Old async DNS library used, lua-unbound missing?"); -- TODO write docs about luaunbound +log("debug", "Using legacy DNS API (missing lua-unbound?)"); -- TODO write docs about luaunbound +-- TODO Raise log level once packages are available local coroutine, pcall = coroutine, pcall; local setmetatable = setmetatable; diff -r 39991e40d1dc -r 3b9d533da8fe util/dependencies.lua --- a/util/dependencies.lua Fri Jun 26 16:41:31 2020 +0100 +++ b/util/dependencies.lua Sat Jun 27 14:25:57 2020 +0200 @@ -100,10 +100,12 @@ local unbound, err = softreq"lunbound"; if not unbound then + --[[ TODO Re-enable once packages are available missingdep("lua-unbound", { { "luarocks", "luarocks install luaunbound" }; { "Source", "https://www.zash.se/luaunbound.html" }; }, "Old DNS resolver library will be used", err); + --]] else package.preload["net.adns"] = function () local ub = require "net.unbound";