Software /
code /
prosody
Comparison
plugins/mod_s2s.lua @ 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 |
parent | 11772:e2155e2703dd |
child | 11774:4625093b0768 |
comparison
equal
deleted
inserted
replaced
11772:e2155e2703dd | 11773:c5f2b63cf6ff |
---|---|
728 | 728 |
729 local filter = initialize_filters(session); | 729 local filter = initialize_filters(session); |
730 local conn = session.conn; | 730 local conn = session.conn; |
731 local w = conn.write; | 731 local w = conn.write; |
732 | 732 |
733 if conn:ssl() then | |
734 session_secure(session); | |
735 end | |
736 | |
733 function session.sends2s(t) | 737 function session.sends2s(t) |
734 log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?")); | 738 log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?")); |
735 if t.name then | 739 if t.name then |
736 t = filter("stanzas/out", t); | 740 t = filter("stanzas/out", t); |
737 end | 741 end |