Diff

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
line wrap: on
line diff
--- a/net/resolvers/service.lua	Sat Dec 08 17:07:28 2018 +0100
+++ b/net/resolvers/service.lua	Sat Dec 08 17:09:55 2018 +0100
@@ -1,5 +1,6 @@
 local adns = require "net.adns";
 local basic = require "net.resolvers.basic";
+local unpack = table.unpack or unpack; -- luacheck: ignore 113
 
 local methods = {};
 local resolver_mt = { __index = methods };