diff 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
line wrap: on
line diff
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Wed Mar 03 11:43:38 2021 +0100
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Wed Mar 03 11:51:39 2021 +0100
@@ -21,6 +21,7 @@
 
 local have_async, async = pcall(require, "util.async");
 local noop = function () end
+local unpack = table.unpack or _G.unpack;
 local type = type;
 local t_insert = table.insert;
 local set = require"util.set";