aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/adns.lua3
-rw-r--r--util/dependencies.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/net/adns.lua b/net/adns.lua
index 852f3f4f..8fe05653 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -12,7 +12,8 @@ local promise = require "util.promise";
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 --git a/util/dependencies.lua b/util/dependencies.lua
index 56a04736..d2f87661 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -100,10 +100,12 @@ local function check_dependencies()
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";