Software /
code /
prosody
Comparison
plugins/mod_tls.lua @ 1675:bddd5ef9565e
Another unwanted spaces at the end of a line.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Thu, 13 Aug 2009 11:35:50 +0200 |
parent | 1652:ce6b91c78b9f |
child | 1875:334383faf77b |
comparison
equal
deleted
inserted
replaced
1674:250bddde4162 | 1675:bddd5ef9565e |
---|---|
26 end | 26 end |
27 end); | 27 end); |
28 | 28 |
29 local starttls_attr = { xmlns = xmlns_starttls }; | 29 local starttls_attr = { xmlns = xmlns_starttls }; |
30 module:add_event_hook("stream-features", | 30 module:add_event_hook("stream-features", |
31 function (session, features) | 31 function (session, features) |
32 if session.conn.starttls then | 32 if session.conn.starttls then |
33 features:tag("starttls", starttls_attr); | 33 features:tag("starttls", starttls_attr); |
34 if secure_auth_only then | 34 if secure_auth_only then |
35 features:tag("required"):up():up(); | 35 features:tag("required"):up():up(); |
36 else | 36 else |