aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-25 17:26:21 +0200
committerKim Alvefur <zash@zash.se>2020-06-25 17:26:21 +0200
commitcb6df1369856f800fa0a572e8561f72ab0e5b05a (patch)
tree745110d9ad8e22269df8a9dd1553ac5910cc7a6e /util
parent11e21424bbd2e83b3e675277f4c07373925c85df (diff)
downloadprosody-cb6df1369856f800fa0a572e8561f72ab0e5b05a.tar.gz
prosody-cb6df1369856f800fa0a572e8561f72ab0e5b05a.zip
util.dependencies: Add awareness of luaunbound
Diffstat (limited to 'util')
-rw-r--r--util/dependencies.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index b53e385b..b76f7ab1 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -98,6 +98,14 @@ local function check_dependencies()
}, "WebSocket support will not be available", err);
end
+ local unbound, err = softreq"lunbound";
+ if not unbound then
+ missingdep("lua-unbound", {
+ { "luarocks", "luarocks install luaunbound" };
+ { "Source", "https://www.zash.se/luaunbound.html" };
+ }, "Old DNS resolver library will be used", err);
+ end
+
local encodings, err = softreq "util.encodings"
if not encodings then
if err:match("module '[^']*' not found") then