aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-04 15:56:27 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-04 15:56:27 +0100
commit0b8c96ecdecfb7f71b12b803bb7ebfc72dbe2c3f (patch)
tree2d047b2c7b295155f646a80b37025bcff2fb922a
parente6396f07f3812da675ec5cb248b9d04d51f7d168 (diff)
downloadprosody-0b8c96ecdecfb7f71b12b803bb7ebfc72dbe2c3f.tar.gz
prosody-0b8c96ecdecfb7f71b12b803bb7ebfc72dbe2c3f.zip
net.server: Provide a way to get sslctx of a server
-rw-r--r--net/server.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index eb032c17..ce2c74bb 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -230,6 +230,9 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx, maxco
handler.ssl = function( )
return ssl
end
+ handler.sslctx = function( )
+ return sslctx
+ end
handler.remove = function( )
connections = connections - 1
end