mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.dependencies: Log an error if the current version of LuaSec installed contains The Bug (thanks Remko)
This commit is contained in:
parent
ff6b4c2c6d
commit
38e55888e5
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,11 @@ if not ssl then
|
|||
["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
|
||||
}, "SSL/TLS support will not be available");
|
||||
end
|
||||
else
|
||||
local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)");
|
||||
if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then
|
||||
log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends");
|
||||
end
|
||||
end
|
||||
|
||||
local encodings, err = softreq "util.encodings"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue