aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-06 15:55:37 +0100
committerKim Alvefur <zash@zash.se>2017-03-06 15:55:37 +0100
commitb1b108de84bd474d97bbc9931e071969fbd65d17 (patch)
treeee8a20788b2fa1b3603361dd402dc05de9fba3a5 /plugins
parent11dc53576d751ef7e62bc439831d35f74de74e5b (diff)
downloadprosody-b1b108de84bd474d97bbc9931e071969fbd65d17.tar.gz
prosody-b1b108de84bd474d97bbc9931e071969fbd65d17.zip
mod_tls: Switch to hook_tag from hook_stanza which was renamed in 2087d42f1e77
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index fbeb344b..48613b9a 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -122,7 +122,7 @@ module:hook("s2s-stream-features", function(event)
end);
-- For s2sout connections, start TLS if we can
-module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza)
+module:hook_tag("http://etherx.jabber.org/streams", "features", function (session, stanza)
module:log("debug", "Received features element");
if can_do_tls(session) and stanza:get_child("starttls", xmlns_starttls) then
module:log("debug", "%s is offering TLS, taking up the offer...", session.to_host);
@@ -131,7 +131,7 @@ module:hook_stanza("http://etherx.jabber.org/streams", "features", function (ses
end
end, 500);
-module:hook_stanza(xmlns_starttls, "proceed", function (session, stanza) -- luacheck: ignore 212/stanza
+module:hook_tag(xmlns_starttls, "proceed", function (session, stanza) -- luacheck: ignore 212/stanza
if session.type == "s2sout_unauthed" and can_do_tls(session) then
module:log("debug", "Proceeding with TLS on s2sout...");
session:reset_stream();