File

util/xpcall.lua @ 13807:21c58b1d5b47 13.0

portmanager: Use alternate host (if any) for SNI (many thanks Zaak!) This was an oversight in the fix for #1915 in commit 4ea7bd7325be (though it seems commit 7e9ebdc75ce4 was the first to introduce this bug).
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Apr 2025 16:13:55 +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;
};