diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-02-12 02:43:02 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-02-12 02:43:02 +0500 |
commit | 91d9bb9a66577c05711d57db4eb9eb05111cc14a (patch) | |
tree | 789604f227c83b1c3f717994c7b1370df63b971f /plugins/mod_tls.lua | |
parent | 2bfb7b55edd82a3cc13fcfbb682930ee9bfd92b5 (diff) | |
download | prosody-91d9bb9a66577c05711d57db4eb9eb05111cc14a.tar.gz prosody-91d9bb9a66577c05711d57db4eb9eb05111cc14a.zip |
mod_tls: Remove origin type check when TLS is requested (thanks MattJ).
Diffstat (limited to 'plugins/mod_tls.lua')
-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; |