Comparison

net/adns.lua @ 10966:97de279ca01a

net.adns: Log a warning if loaded (because net.unbound wasn't)
author Kim Alvefur <zash@zash.se>
date Thu, 25 Jun 2020 17:55:24 +0200
parent 10614:431511e190bc
child 10974:3b9d533da8fe
comparison
equal deleted inserted replaced
10965:f5d5fc409680 10966:97de279ca01a
9 local server = require "net.server"; 9 local server = require "net.server";
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
15 log("warn", "Old async DNS library used, lua-unbound missing?"); -- TODO write docs about luaunbound
14 16
15 local coroutine, pcall = coroutine, pcall; 17 local coroutine, pcall = coroutine, pcall;
16 local setmetatable = setmetatable; 18 local setmetatable = setmetatable;
17 19
18 local function dummy_send(sock, data, i, j) return (j-i)+1; end -- luacheck: ignore 212 20 local function dummy_send(sock, data, i, j) return (j-i)+1; end -- luacheck: ignore 212