diff options
author | Kim Alvefur <zash@zash.se> | 2020-06-25 17:41:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-06-25 17:41:07 +0200 |
commit | c98a6d205e85ef1a580cd95301af9f3deddd3777 (patch) | |
tree | e822c50fb364fa55393b3d4812e2d6e0a5f45e2c /util | |
parent | 4a42f8042dc9c6289fc008c63ff2625fbdfc4808 (diff) | |
download | prosody-c98a6d205e85ef1a580cd95301af9f3deddd3777.tar.gz prosody-c98a6d205e85ef1a580cd95301af9f3deddd3777.zip |
util.dependencies: Prefer net.unbound over net.adns
Diffstat (limited to 'util')
-rw-r--r-- | util/dependencies.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua index b76f7ab1..56a04736 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -104,6 +104,11 @@ local function check_dependencies() { "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" |