Comparison

net/resolvers/service.lua @ 10970:4603697aee50

net.resolvers: Remove FIXMEs obsoleted by switch to libunbound
author Kim Alvefur <zash@zash.se>
date Thu, 25 Jun 2020 19:24:58 +0200
parent 10650:324a0c7d1c6a
child 11710:26a8cc9d9eb7
comparison
equal deleted inserted replaced
10969:d70db967c1b7 10970:4603697aee50
1 local adns = require "net.adns"; 1 local adns = require "net.adns";
2 local basic = require "net.resolvers.basic"; 2 local basic = require "net.resolvers.basic";
3 local inet_pton = require "util.net".pton; 3 local inet_pton = require "util.net".pton;
4 local idna_to_ascii = require "util.encodings".idna.to_ascii; 4 local idna_to_ascii = require "util.encodings".idna.to_ascii;
5 local unpack = table.unpack or unpack; -- luacheck: ignore 113 5 local unpack = table.unpack or unpack; -- luacheck: ignore 113
6
7 -- FIXME #1428 Reuse DNS resolver object (pass to basic resorver)
8 -- FIXME #1429 Close DNS resolver object when done
9 6
10 local methods = {}; 7 local methods = {};
11 local resolver_mt = { __index = methods }; 8 local resolver_mt = { __index = methods };
12 9
13 -- Find the next target to connect to, and 10 -- Find the next target to connect to, and