Comparison

net/resolvers/basic.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 9496:4ac3103787cc
child 10386:cf93a951da37
comparison
equal deleted inserted replaced
9690:75ed3403065d 9691:e11e076f0eb8
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 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