util.dependencies: Add awareness of luaunbound
authorKim Alvefur <zash@zash.se>
Thu, 25 Jun 2020 17:26:21 +0200
changeset 10967 80733851be8b
parent 10966 92f30e8ecdfc
child 10968 d6a3d652ca32
util.dependencies: Add awareness of luaunbound
util/dependencies.lua
--- a/util/dependencies.lua	Sat Mar 09 21:19:24 2019 +0100
+++ b/util/dependencies.lua	Thu Jun 25 17:26:21 2020 +0200
@@ -98,6 +98,14 @@
 		}, "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