aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Schäfer <jonas@wielicki.name>2021-09-17 21:43:54 +0200
committerJonas Schäfer <jonas@wielicki.name>2021-09-17 21:43:54 +0200
commit84d748f94d6a94e9caf165661692770ea11e0e4e (patch)
tree4d293e589de2f64559b9d498d3bcbaf295c704b4
parent87d3cb2f3348edf3753c487effd04e1af213f668 (diff)
downloadprosody-84d748f94d6a94e9caf165661692770ea11e0e4e.tar.gz
prosody-84d748f94d6a94e9caf165661692770ea11e0e4e.zip
mod_tls: pass target hostname to starttls
In case the network backend needs it for outgoing SNI or something.
-rw-r--r--plugins/mod_tls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index dcb2da21..fc35b1d0 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -193,7 +193,7 @@ module:hook_tag(xmlns_starttls, "proceed", function (session, stanza) -- luachec
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