aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-17 16:53:28 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-17 16:53:28 +0000
commitb0055aa7b5f15e22bf9cd340f5f923eaa23a1d9f (patch)
treebfa37e4540540c10f58ad67a557406f5216b0fa5
parentd7d5b34c60d61ece453b2e0dcb858e8460423ecd (diff)
downloadprosody-b0055aa7b5f15e22bf9cd340f5f923eaa23a1d9f.tar.gz
prosody-b0055aa7b5f15e22bf9cd340f5f923eaa23a1d9f.zip
net.server_event: Load ssl/socket libraries if not already available
-rw-r--r--net/server_event.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 8fa59c75..bcdd6ad1 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -44,8 +44,8 @@ local tostring = use "tostring"
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")