aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-25 15:40:33 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-25 15:40:33 +0000
commit38e55888e5c0a041f876281cfeb6230be406c7c3 (patch)
treefcc9376811f64f466bfbd1b9a2b2be75c7447802 /util
parentff6b4c2c6d8823412bfc4ee7946cd2bf449ea174 (diff)
downloadprosody-38e55888e5c0a041f876281cfeb6230be406c7c3.tar.gz
prosody-38e55888e5c0a041f876281cfeb6230be406c7c3.zip
util.dependencies: Log an error if the current version of LuaSec installed contains The Bug (thanks Remko)
Diffstat (limited to 'util')
-rw-r--r--util/dependencies.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 6decfba5..790045eb 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -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"