# HG changeset patch # User Kim Alvefur # Date 1628621678 -7200 # Node ID c5f2b63cf6ff07012d3631b3f2fccb7ada7f30ec # Parent e2155e2703dd282b974bb5d54165ba2122b606b5 mod_s2s: Handle connections having TLS from the start This could be done with multiplexing, or a future additional port definition. diff -r e2155e2703dd -r c5f2b63cf6ff plugins/mod_s2s.lua --- 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