diff options
author | Tobias Markmann <tm@ayena.de> | 2008-11-23 20:44:48 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2008-11-23 20:44:48 +0100 |
commit | 560094822d86f10450567785544cfcca61dd8a3b (patch) | |
tree | c2737280276b8ec3642cae5ae644e81da621be04 /plugins/mod_tls.lua | |
parent | 3bc6fdb526dec6b56dab9208461d5b2f4db08006 (diff) | |
parent | 6db47b60f4574bc8e5a34eacac8a67ccd52107dd (diff) | |
download | prosody-560094822d86f10450567785544cfcca61dd8a3b.tar.gz prosody-560094822d86f10450567785544cfcca61dd8a3b.zip |
Merging with main branch.
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r-- | plugins/mod_tls.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index b5ca5015..cc46d556 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -24,9 +24,10 @@ add_handler("c2s_unauthed", "starttls", xmlns_starttls, end end); +local starttls_attr = { xmlns = xmlns_starttls }; add_event_hook("stream-features", function (session, features) if session.conn.starttls then - t_insert(features, "<starttls xmlns='"..xmlns_starttls.."'/>"); + features:tag("starttls", starttls_attr):up(); end end); |