# HG changeset patch # User Kim Alvefur # Date 1593099667 -7200 # Node ID f5d5fc409680daaaf854c0bad3ab293ef1f95a42 # Parent d6a3d652ca32656762ed972f50d711ee93f78050 util.dependencies: Prefer net.unbound over net.adns diff -r d6a3d652ca32 -r f5d5fc409680 util/dependencies.lua --- a/util/dependencies.lua Thu Jun 25 17:26:58 2020 +0200 +++ b/util/dependencies.lua Thu Jun 25 17:41:07 2020 +0200 @@ -104,6 +104,11 @@ { "luarocks", "luarocks install luaunbound" }; { "Source", "https://www.zash.se/luaunbound.html" }; }, "Old DNS resolver library will be used", err); + else + package.preload["net.adns"] = function () + local ub = require "net.unbound"; + return ub; + end end local encodings, err = softreq "util.encodings"