plugins/mod_tls.lua

changeset 1903
b7552b1e267d
parent 1896
e7ac9be5c90c
child 1910
14c043d7fb77
--- a/plugins/mod_tls.lua	Mon Oct 05 10:07:06 2009 +0100
+++ b/plugins/mod_tls.lua	Mon Oct 05 10:10:53 2009 +0100
@@ -58,7 +58,7 @@
 		function (session, 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
+			if session.to_host and session.conn.starttls and not features:child_with_ns(xmlns_starttls) then
 				features:tag("starttls", starttls_attr):up();
 				-- TODO: Make this optional :P
 				--features:tag("required"):up():up();

mercurial