# HG changeset patch # User Matthias Diene # Date 1248346860 -3600 # Node ID 4cdf9cefa0bcdc3dd45ccf664bb8fa9bf8340fc3 # Parent 5be6dc582df3abf71ed0784a4ea8883417bcdefd net.server: Fail to open port if legacy SSL requested, but SSL not available diff -r 5be6dc582df3 -r 4cdf9cefa0bc net/server.lua --- a/net/server.lua Thu Jul 23 03:58:14 2009 +0100 +++ b/net/server.lua Thu Jul 23 12:01:00 2009 +0100 @@ -190,7 +190,12 @@ 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