aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/server.lua')
-rw-r--r--net/server.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index 6ff39926..6fe72712 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -190,7 +190,12 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx, maxco
end
if not ssl then
sslctx = false;
- out_put("server.lua: ", "ssl not enabled on ", serverport);
+ if startssl then
+ out_error( "server.lua: Cannot start ssl on port: ", serverport )
+ return nil, "Cannot start ssl, see log for details"
+ else
+ out_put("server.lua: ", "ssl not enabled on ", serverport);
+ end
end
local accept = socket.accept