aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server.lua b/net/server.lua
index 0ca6d17c..1661ba00 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -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