diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-11-08 03:12:30 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-11-08 03:12:30 +0000 |
commit | 8e91da96f84888ec6d2840ce0e3b139139e4f6d5 (patch) | |
tree | dfdc6870a94bef66e6ac841907b9037fafdaa9a2 /plugins | |
parent | dd33442407e867ced3ffa168b6fb9106acddfe17 (diff) | |
download | prosody-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')
-rw-r--r-- | plugins/mod_tls.lua | 4 |
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() |