Software /
code /
prosody
File
util/xpcall.lua @ 12488:3183f358a88f 0.12
util.prosodyctl.check: turn: Report lack of TURN services as a problem #1749
Rationale: It seems unlikely that someone who has not configured any
TURN service runs 'prosodyctl check turn' expecting this to be okay.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 03 May 2022 19:36:17 +0200 |
parent | 9561:cfc7b2f7251e |
child | 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"util.compat".xpcall; end return { xpcall = xpcall; };