Mercurial > prosody-modules
comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 4491:35381608d323
mod_s2s_auth_dane: Fix traceback in DANE-TA check because unpack() moved
It moved into the table package in Lua 5.2, error happens when compat is
disabled or gone (ie 5.3+).
This happened in DANE-TA, which is disabled by default.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Mar 2021 11:51:39 +0100 |
parents | cf2bdb2aaa57 |
children |
comparison
equal
deleted
inserted
replaced
4490:cf2bdb2aaa57 | 4491:35381608d323 |
---|---|
19 | 19 |
20 module:set_global(); | 20 module:set_global(); |
21 | 21 |
22 local have_async, async = pcall(require, "util.async"); | 22 local have_async, async = pcall(require, "util.async"); |
23 local noop = function () end | 23 local noop = function () end |
24 local unpack = table.unpack or _G.unpack; | |
24 local type = type; | 25 local type = type; |
25 local t_insert = table.insert; | 26 local t_insert = table.insert; |
26 local set = require"util.set"; | 27 local set = require"util.set"; |
27 local dns_lookup = require"net.adns".lookup; | 28 local dns_lookup = require"net.adns".lookup; |
28 local hashes = require"util.hashes"; | 29 local hashes = require"util.hashes"; |