From: Waqas Hussain Date: Thu, 11 Feb 2010 21:43:02 +0000 (+0500) Subject: mod_tls: Remove origin type check when TLS is requested (thanks MattJ). X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=090bf617e12f1a84c0d1d04917f771c9684a5304;p=prosody.git mod_tls: Remove origin type check when TLS is requested (thanks MattJ). --- 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;