projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecf2600
)
mod_tls: Don't try to start TLS if we can't actually do it (thanks Florob)
author
Matthew Wild
<mwild1@gmail.com>
Fri, 9 Oct 2009 16:48:45 +0000
(17:48 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 9 Oct 2009 16:48:45 +0000
(17:48 +0100)
plugins/mod_tls.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_tls.lua
b/plugins/mod_tls.lua
index 09470083bd5143e15580546ddeaa41580d6161e7..79a74deb2d5e31343cfd33ca0de246dad7958fa9 100644
(file)
--- a/
plugins/mod_tls.lua
+++ b/
plugins/mod_tls.lua
@@
-73,7
+73,7
@@
module:hook("s2s-stream-features",
module:hook_stanza(xmlns_stream, "features",
function (session, stanza)
module:log("debug", "Received features element");
- if stanza:child_with_ns(xmlns_starttls) then
+ if s
ession.conn.starttls and s
tanza:child_with_ns(xmlns_starttls) then
module:log("%s is offering TLS, taking up the offer...", session.to_host);
session.sends2s("<starttls xmlns='"..xmlns_starttls.."'/>");
return true;