Software /
code /
prosody
Diff
net/server_event.lua @ 2367:22dc9005360f
net.server_event: Load ssl/socket libraries if not already available
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 17 Dec 2009 16:53:28 +0000 |
parent | 2340:b286d60cb4fc |
child | 2374:9b6a9d521620 |
line wrap: on
line diff
--- a/net/server_event.lua Thu Dec 17 16:52:39 2009 +0000 +++ b/net/server_event.lua Thu Dec 17 16:53:28 2009 +0000 @@ -44,8 +44,8 @@ local coroutine = use "coroutine" local setmetatable = use "setmetatable" -local ssl = use "ssl" -local socket = use "socket" +local ssl = use "ssl" or require "ssl" +local socket = use "socket" or require "socket" local log = require ("util.logger").init("socket")