Comparison

mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua @ 4940: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
parent 2861:afeb06e4cdea
comparison
equal deleted inserted replaced
4939:1a58345d91a9 4940: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