Software /
code /
prosody
Comparison
util/dependencies.lua @ 2169:c06fdb6b57bd
util.dependencies: Log an error if the current version of LuaSec installed contains The Bug (thanks Remko)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 15:40:33 +0000 |
parent | 2158:575d5db7f14f |
child | 2170:2abca9cc78b1 |
child | 2298:508d9dc70bb4 |
comparison
equal
deleted
inserted
replaced
2168:1a99a3bf3ce6 | 2169:c06fdb6b57bd |
---|---|
69 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; | 69 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
70 ["luarocks"] = "luarocks install luasec"; | 70 ["luarocks"] = "luarocks install luasec"; |
71 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; | 71 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
72 }, "SSL/TLS support will not be available"); | 72 }, "SSL/TLS support will not be available"); |
73 end | 73 end |
74 else | |
75 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); | |
76 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then | |
77 log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); | |
78 end | |
74 end | 79 end |
75 | 80 |
76 local encodings, err = softreq "util.encodings" | 81 local encodings, err = softreq "util.encodings" |
77 if not encodings then | 82 if not encodings then |
78 if err:match("not found") then | 83 if err:match("not found") then |