Software /
code /
prosody
Comparison
net/resolvers/basic.lua @ 10434:8f709577fe8e
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Nov 2019 23:12:01 +0100 |
parent | 10401:1ef1f6c43c5b |
child | 10438:55490be0dc29 |
comparison
equal
deleted
inserted
replaced
10433:7777f25d5266 | 10434:8f709577fe8e |
---|---|
1 local adns = require "net.adns"; | 1 local adns = require "net.adns"; |
2 local inet_pton = require "util.net".pton; | 2 local inet_pton = require "util.net".pton; |
3 local idna_to_ascii = require "util.encodings".idna.to_ascii; | 3 local idna_to_ascii = require "util.encodings".idna.to_ascii; |
4 local unpack = table.unpack or unpack; -- luacheck: ignore 113 | |
4 | 5 |
5 local methods = {}; | 6 local methods = {}; |
6 local resolver_mt = { __index = methods }; | 7 local resolver_mt = { __index = methods }; |
7 | 8 |
8 -- Find the next target to connect to, and | 9 -- Find the next target to connect to, and |