71 end |
71 end |
72 |
72 |
73 local ssl = softreq "ssl" |
73 local ssl = softreq "ssl" |
74 |
74 |
75 if not ssl then |
75 if not ssl then |
76 if config.get("*", "core", "run_without_ssl") then |
76 missingdep("LuaSec", { |
77 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); |
77 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
78 else |
78 ["luarocks"] = "luarocks install luasec"; |
79 missingdep("LuaSec", { |
79 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
80 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
80 }, "SSL/TLS support will not be available"); |
81 ["luarocks"] = "luarocks install luasec"; |
|
82 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
|
83 }, "SSL/TLS support will not be available"); |
|
84 end |
|
85 else |
81 else |
86 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
82 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
87 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then |
83 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then |
88 log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); |
84 log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); |
89 end |
85 end |