Software / code / prosody
Comparison
plugins/mod_tls.lua @ 4475:7341cc5c8da9
mod_tls: Fix log statement (thanks Zash)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 18 Jan 2012 15:07:26 +0000 |
| parent | 4244:19c9bf88ec89 |
| child | 5370:7838acadb0fa |
comparison
equal
deleted
inserted
replaced
| 4473:7e2cf20aef74 | 4475:7341cc5c8da9 |
|---|---|
| 73 | 73 |
| 74 -- For s2sout connections, start TLS if we can | 74 -- For s2sout connections, start TLS if we can |
| 75 module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) | 75 module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) |
| 76 module:log("debug", "Received features element"); | 76 module:log("debug", "Received features element"); |
| 77 if can_do_tls(session) and stanza:child_with_ns(xmlns_starttls) then | 77 if can_do_tls(session) and stanza:child_with_ns(xmlns_starttls) then |
| 78 module:log("%s is offering TLS, taking up the offer...", session.to_host); | 78 module:log("debug", "%s is offering TLS, taking up the offer...", session.to_host); |
| 79 session.sends2s("<starttls xmlns='"..xmlns_starttls.."'/>"); | 79 session.sends2s("<starttls xmlns='"..xmlns_starttls.."'/>"); |
| 80 return true; | 80 return true; |
| 81 end | 81 end |
| 82 end, 500); | 82 end, 500); |
| 83 | 83 |