Software /
code /
verse
Diff
init.lua @ 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 |
parent | 361:451dbad2a8e6 |
child | 369:074c547fe05a |
child | 382:479b856a910f |
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";