aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-12 02:43:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-12 02:43:02 +0500
commit91d9bb9a66577c05711d57db4eb9eb05111cc14a (patch)
tree789604f227c83b1c3f717994c7b1370df63b971f /plugins
parent2bfb7b55edd82a3cc13fcfbb682930ee9bfd92b5 (diff)
downloadprosody-91d9bb9a66577c05711d57db4eb9eb05111cc14a.tar.gz
prosody-91d9bb9a66577c05711d57db4eb9eb05111cc14a.zip
mod_tls: Remove origin type check when TLS is requested (thanks MattJ).
Diffstat (limited to 'plugins')
-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 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;