Diff

util/dependencies.lua @ 10963:80733851be8b

util.dependencies: Add awareness of luaunbound
author Kim Alvefur <zash@zash.se>
date Thu, 25 Jun 2020 17:26:21 +0200
parent 10906:a1fed82c44b9
child 10965:f5d5fc409680
line wrap: on
line diff
--- 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