comparison mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua @ 4941:7406039021d8

mod_auth_dovecot: Fix compat with Lua 5.2+ move of unpack() (thanks Tom)
author Kim Alvefur <zash@zash.se>
date Sat, 14 May 2022 15:52:23 +0200
parents afeb06e4cdea
children
comparison
equal deleted inserted replaced
4940:1a58345d91a9 4941:7406039021d8
22 22
23 local s_match, s_gmatch = string.match, string.gmatch 23 local s_match, s_gmatch = string.match, string.gmatch
24 local t_concat = table.concat; 24 local t_concat = table.concat;
25 local m_random = math.random; 25 local m_random = math.random;
26 local tostring, tonumber = tostring, tonumber; 26 local tostring, tonumber = tostring, tonumber;
27 local unpack = table.unpack or unpack;
27 28
28 local socket = require "socket" 29 local socket = require "socket"
29 30
30 local unix_success, unix = pcall(require, "socket.unix"); 31 local unix_success, unix = pcall(require, "socket.unix");
31 if unix_success and unix and not socket.unix then 32 if unix_success and unix and not socket.unix then