mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749)
This commit is contained in:
parent
1686ef5d53
commit
c200735dba
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ function check_dependencies()
|
|||
["luarocks"] = "luarocks install luasec";
|
||||
["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
|
||||
}, "SSL/TLS support will not be available");
|
||||
elseif not _G.ssl then
|
||||
_G.ssl = ssl;
|
||||
_G.ssl.context = require "ssl.context";
|
||||
end
|
||||
|
||||
local encodings, err = softreq "util.encodings"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue