mod_tls: :up() out of the starttls tag in stream:features
authorMatthew Wild <mwild1@gmail.com>
Sun, 4 Oct 2009 12:24:04 +0000 (13:24 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sun, 4 Oct 2009 12:24:04 +0000 (13:24 +0100)
plugins/mod_tls.lua

index 2b95ec1ea53764df49db559097aebda77e670c71..931937261f994df8b22a2bade396cb3155fb4274 100644 (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