mod_tls: :up() out of the starttls tag in stream:features

This commit is contained in:
Matthew Wild 2009-10-04 13:24:04 +01:00
parent 7f7fb4b522
commit c6ec71bee0

View file

@ -59,7 +59,7 @@ module:add_event_hook("s2s-stream-features",
-- This hook is possibly called once per host (at least if the
-- remote server does not specify a to/from.
if session.conn.starttls and not features:child_with_ns(xmlns_starttls) then
features:tag("starttls", starttls_attr);
features:tag("starttls", starttls_attr):up();
-- TODO: Make this optional :P
--features:tag("required"):up():up();
end