util.dependencies: Tone down lua-unbound dependency for now
At least until packages are available
Wording from MattJ
--- 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;
--- 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";