diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_tls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index 9214dd12..90985874 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -18,7 +18,7 @@ local global_ssl_ctx = prosody.global_ssl_ctx; module:hook("stanza/urn:ietf:params:xml:ns:xmpp-tls:starttls", function(event) local origin = event.origin; - if origin.conn.starttls and origin.type == "c2s_unauthed" or origin.type == "s2sin_unauthed" then + if origin.conn.starttls then (origin.sends2s or origin.send)(st.stanza("proceed", { xmlns = xmlns_starttls })); origin:reset_stream(); local host = origin.to_host or origin.host; |