# HG changeset patch # User Jonas Schäfer # Date 1631907834 -7200 # Node ID fb65b5a033b2e5aba051ae63c29a89b7964a8600 # Parent 988a3a7e1f353558112593a91a143a56de47f15e mod_tls: pass target hostname to starttls In case the network backend needs it for outgoing SNI or something. diff -r 988a3a7e1f35 -r fb65b5a033b2 plugins/mod_tls.lua --- a/plugins/mod_tls.lua Sat Apr 02 11:18:57 2022 +0200 +++ b/plugins/mod_tls.lua Fri Sep 17 21:43:54 2021 +0200 @@ -193,7 +193,7 @@ if session.type == "s2sout_unauthed" and can_do_tls(session) then module:log("debug", "Proceeding with TLS on s2sout..."); session:reset_stream(); - session.conn:starttls(session.ssl_ctx); + session.conn:starttls(session.ssl_ctx, session.to_host); session.secure = false; return true; end