various: Don't rely on _G.unpack existing

This commit is contained in:
Kim Alvefur 2018-12-08 17:09:55 +01:00
parent 2d56ac0394
commit 2b289f34f9
8 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,6 @@
local adns = require "net.adns";
local inet_pton = require "util.net".pton;
local unpack = table.unpack or unpack; -- luacheck: ignore 113
local methods = {};
local resolver_mt = { __index = methods };