# HG changeset patch # User Kim Alvefur # Date 1416162798 -3600 # Node ID 154c2f04d73b0a3ba1d4e0b12295c804f0fc3927 # Parent 8e9f44ecb95b8ee7cce163e39dc6eb2800e6607e init: Restore loading of LuaSec (must be loaded before net.server) (thanks 桜) diff -r 8e9f44ecb95b -r 154c2f04d73b init.lua --- 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";