Software /
code /
prosody
Changeset
11773:c5f2b63cf6ff
mod_s2s: Handle connections having TLS from the start
This could be done with multiplexing, or a future additional port
definition.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 10 Aug 2021 20:54:38 +0200 |
parents | 11772:e2155e2703dd |
children | 11774:4625093b0768 |
files | plugins/mod_s2s.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Tue Aug 10 20:51:31 2021 +0200 +++ b/plugins/mod_s2s.lua Tue Aug 10 20:54:38 2021 +0200 @@ -730,6 +730,10 @@ local conn = session.conn; local w = conn.write; + if conn:ssl() then + session_secure(session); + end + function session.sends2s(t) log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?")); if t.name then