diff options
author | Kim Alvefur <zash@zash.se> | 2020-06-27 14:25:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-06-27 14:25:57 +0200 |
commit | 8c73ea0b2286fed2d1a91333c8d92dab247fd568 (patch) | |
tree | 60ac15351c0885abbeb37ed310b01187d59f9df5 | |
parent | fb8e10737dfe14aaaa5fbc0295044f1f57dc9ad0 (diff) | |
download | prosody-8c73ea0b2286fed2d1a91333c8d92dab247fd568.tar.gz prosody-8c73ea0b2286fed2d1a91333c8d92dab247fd568.zip |
util.dependencies: Tone down lua-unbound dependency for now
At least until packages are available
Wording from MattJ
-rw-r--r-- | net/adns.lua | 3 | ||||
-rw-r--r-- | util/dependencies.lua | 2 |
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"; |