Changeset

368:154c2f04d73b

init: Restore loading of LuaSec (must be loaded before net.server) (thanks 桜)
author Kim Alvefur <zash@zash.se>
date Sun, 16 Nov 2014 19:33:18 +0100
parents 367:8e9f44ecb95b
children 369:074c547fe05a 379:d80d27234e38
files init.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/init.lua	Sun Oct 05 14:39:11 2014 +0200
+++ b/init.lua	Sun Nov 16 19:33:18 2014 +0100
@@ -2,8 +2,10 @@
 -- Use LuaRocks if available
 pcall(require, "luarocks.require");
 
+local socket = require"socket";
+
 -- Load LuaSec if available
-local socket = require"socket";
+pcall(require, "ssl");
 
 local server = require "net.server";
 local events = require "util.events";