aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-11-08 03:12:30 +0000
committerMatthew Wild <mwild1@gmail.com>2010-11-08 03:12:30 +0000
commit8e91da96f84888ec6d2840ce0e3b139139e4f6d5 (patch)
treedfdc6870a94bef66e6ac841907b9037fafdaa9a2 /plugins/mod_tls.lua
parentdd33442407e867ced3ffa168b6fb9106acddfe17 (diff)
downloadprosody-8e91da96f84888ec6d2840ce0e3b139139e4f6d5.tar.gz
prosody-8e91da96f84888ec6d2840ce0e3b139139e4f6d5.zip
mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain)
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index fa7b4688..a80f230e 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -91,8 +91,8 @@ end);
function module.load()
local ssl_config = module:get_option("ssl");
- host.ssl_ctx = create_context(host, "client", ssl_config); -- for outgoing connections
- host.ssl_ctx_in = create_context(host, "server", ssl_config); -- for incoming connections
+ host.ssl_ctx = create_context(host.host, "client", ssl_config); -- for outgoing connections
+ host.ssl_ctx_in = create_context(host.host, "server", ssl_config); -- for incoming connections
end
function module.unload()