Software /
code /
prosody
Changeset
3574:1e088ec07d33
mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 08 Nov 2010 03:12:30 +0000 |
parents | 3573:f31fa6520a4b |
children | 3575:bc3dfc00da5d |
files | plugins/mod_tls.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Sun Nov 07 20:38:01 2010 +0000 +++ b/plugins/mod_tls.lua Mon Nov 08 03:12:30 2010 +0000 @@ -91,8 +91,8 @@ 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()