Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/net/resolvers/basic.lua Sat Dec 08 17:07:28 2018 +0100 +++ b/net/resolvers/basic.lua Sat Dec 08 17:09:55 2018 +0100 @@ -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 };