Software /
code /
prosody
Comparison
net/resolvers/service.lua @ 9691:e11e076f0eb8
various: Don't rely on _G.unpack existing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Dec 2018 17:09:55 +0100 |
parent | 9397:e09ddd061ec4 |
child | 10121:33f287519bf6 |
comparison
equal
deleted
inserted
replaced
9690:75ed3403065d | 9691:e11e076f0eb8 |
---|---|
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 unpack = table.unpack or unpack; -- luacheck: ignore 113 | |
3 | 4 |
4 local methods = {}; | 5 local methods = {}; |
5 local resolver_mt = { __index = methods }; | 6 local resolver_mt = { __index = methods }; |
6 | 7 |
7 -- Find the next target to connect to, and | 8 -- Find the next target to connect to, and |