mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
server.lua should degrade gracefully when LuaSec not present
This commit is contained in:
parent
288aaa38ea
commit
d510d54b28
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ local out_error = print;
|
|||
|
||||
--// extern libs //--
|
||||
|
||||
local luasec = require "ssl"
|
||||
local luasec = select(2, pcall(require, "ssl"))
|
||||
local luasocket = require "socket"
|
||||
|
||||
--// extern lib methods //--
|
||||
|
@ -722,7 +722,7 @@ addserver = function( listeners, port, addr, mode, sslctx ) -- this function
|
|||
else
|
||||
for name, func in pairs( listeners ) do
|
||||
if type( func ) ~= "function" then
|
||||
err = "invalid listener function"
|
||||
--err = "invalid listener function"
|
||||
break
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue