Software /
code /
prosody
File
util/xpcall.lua @ 13280:cf8a6710c91c
mod_c2s: Add session.ssl_cfg/ssl_ctx for direct TLS connections
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 07 Sep 2022 11:29:00 +0100 |
parent | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"prosody.util.compat".xpcall; end return { xpcall = xpcall; };