diff options
author | Kim Alvefur <zash@zash.se> | 2021-08-10 20:54:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-08-10 20:54:38 +0200 |
commit | c42a125cc727bd0a9f5856054a6e75b415bbee92 (patch) | |
tree | 3e4761bb140a5f5427cd8749340a01e55361685e /plugins/mod_s2s.lua | |
parent | c3047df95ac25968d24e9bb4650c8ebac982bb22 (diff) | |
download | prosody-c42a125cc727bd0a9f5856054a6e75b415bbee92.tar.gz prosody-c42a125cc727bd0a9f5856054a6e75b415bbee92.zip |
mod_s2s: Handle connections having TLS from the start
This could be done with multiplexing, or a future additional port
definition.
Diffstat (limited to 'plugins/mod_s2s.lua')
-rw-r--r-- | plugins/mod_s2s.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index df9e4dd9..f4cf9444 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -730,6 +730,10 @@ local function initialize_session(session) 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 |