Comparison

net/adns.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 10966:97de279ca01a
child 11217:65ce1178d655
comparison
equal deleted inserted replaced
10973:39991e40d1dc 10974:3b9d533da8fe
10 local new_resolver = require "net.dns".resolver; 10 local new_resolver = require "net.dns".resolver;
11 local promise = require "util.promise"; 11 local promise = require "util.promise";
12 12
13 local log = require "util.logger".init("adns"); 13 local log = require "util.logger".init("adns");
14 14
15 log("warn", "Old async DNS library used, lua-unbound missing?"); -- TODO write docs about luaunbound 15 log("debug", "Using legacy DNS API (missing lua-unbound?)"); -- TODO write docs about luaunbound
16 -- TODO Raise log level once packages are available
16 17
17 local coroutine, pcall = coroutine, pcall; 18 local coroutine, pcall = coroutine, pcall;
18 local setmetatable = setmetatable; 19 local setmetatable = setmetatable;
19 20
20 local function dummy_send(sock, data, i, j) return (j-i)+1; end -- luacheck: ignore 212 21 local function dummy_send(sock, data, i, j) return (j-i)+1; end -- luacheck: ignore 212