From c42a125cc727bd0a9f5856054a6e75b415bbee92 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 10 Aug 2021 20:54:38 +0200 Subject: mod_s2s: Handle connections having TLS from the start This could be done with multiplexing, or a future additional port definition. --- plugins/mod_s2s.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/mod_s2s.lua') 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 -- cgit v1.2.3