Comparison

util/dependencies.lua @ 10974:3b9d533da8fe

util.dependencies: Tone down lua-unbound dependency for now At least until packages are available Wording from MattJ
author Kim Alvefur <zash@zash.se>
date Sat, 27 Jun 2020 14:25:57 +0200
parent 10965:f5d5fc409680
child 10975:f997e3e8bc23
comparison
equal deleted inserted replaced
10973:39991e40d1dc 10974:3b9d533da8fe
98 }, "WebSocket support will not be available", err); 98 }, "WebSocket support will not be available", err);
99 end 99 end
100 100
101 local unbound, err = softreq"lunbound"; 101 local unbound, err = softreq"lunbound";
102 if not unbound then 102 if not unbound then
103 --[[ TODO Re-enable once packages are available
103 missingdep("lua-unbound", { 104 missingdep("lua-unbound", {
104 { "luarocks", "luarocks install luaunbound" }; 105 { "luarocks", "luarocks install luaunbound" };
105 { "Source", "https://www.zash.se/luaunbound.html" }; 106 { "Source", "https://www.zash.se/luaunbound.html" };
106 }, "Old DNS resolver library will be used", err); 107 }, "Old DNS resolver library will be used", err);
108 --]]
107 else 109 else
108 package.preload["net.adns"] = function () 110 package.preload["net.adns"] = function ()
109 local ub = require "net.unbound"; 111 local ub = require "net.unbound";
110 return ub; 112 return ub;
111 end 113 end