Changeset

12484:fb65b5a033b2

mod_tls: pass target hostname to starttls In case the network backend needs it for outgoing SNI or something.
author Jonas Schäfer <jonas@wielicki.name>
date Fri, 17 Sep 2021 21:43:54 +0200
parents 12483:988a3a7e1f35
children 12485:794f5ec0f347
files plugins/mod_tls.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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