aboutsummaryrefslogtreecommitdiffstats
path: root/util/dependencies.lua
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
commit57253b7f87f70ed3e9711c931b03aa650b128d72 (patch)
tree745110d9ad8e22269df8a9dd1553ac5910cc7a6e /util/dependencies.lua
parentb96535b6ae01148fe9969fffd5e602798aa1cdcc (diff)
downloadprosody-57253b7f87f70ed3e9711c931b03aa650b128d72.tar.gz
prosody-57253b7f87f70ed3e9711c931b03aa650b128d72.zip
util.dependencies: Add awareness of luaunbound
Diffstat (limited to 'util/dependencies.lua')
-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