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

Sun, 04 Oct 2009 13:24:04 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 04 Oct 2009 13:24:04 +0100
changeset 1896
e7ac9be5c90c
parent 1895
b7c838a1b0ca
child 1900
93a94ec05ebe

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

plugins/mod_tls.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_tls.lua	Sat Oct 03 23:23:00 2009 -0700
+++ b/plugins/mod_tls.lua	Sun Oct 04 13:24:04 2009 +0100
@@ -59,7 +59,7 @@
 			-- 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

mercurial