mod_s2s: Handle connections having TLS from the start
This could be done with multiplexing, or a future additional port
definition.
--- 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