diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-31 15:39:49 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-31 15:39:49 +0000 |
commit | b870a3fe51838a4ede43526d24dcdce0f08e142f (patch) | |
tree | a3930b7ff19750cb0a2780de297825f392de106e /plugins/mod_tls.lua | |
parent | f8a121c33bdeed0c4770b2cb2c6801f7ac8efbd9 (diff) | |
download | prosody-b870a3fe51838a4ede43526d24dcdce0f08e142f.tar.gz prosody-b870a3fe51838a4ede43526d24dcdce0f08e142f.zip |
mod_tls: Set the sslctx on outgoing connections (possibly the cause of outgoing s2s connections not being encrypted)
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r-- | plugins/mod_tls.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index 10bc21cd..897c818b 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -89,7 +89,8 @@ module:hook_stanza(xmlns_starttls, "proceed", module:log("debug", "Proceeding with TLS on s2sout..."); local format, to_host, from_host = string.format, session.to_host, session.from_host; session:reset_stream(); - session.conn:starttls(true); + local ssl_ctx = session.from_host and hosts[session.from_host].ssl_ctx or global_ssl_ctx; + session.conn:starttls(ssl_ctx, true); session.secure = false; return true; end); |