plugins/mod_s2s.lua
changeset 11777 c5f2b63cf6ff
parent 11776 e2155e2703dd
child 11778 4625093b0768
equal deleted inserted replaced
11776:e2155e2703dd 11777:c5f2b63cf6ff
   728 
   728 
   729 	local filter = initialize_filters(session);
   729 	local filter = initialize_filters(session);
   730 	local conn = session.conn;
   730 	local conn = session.conn;
   731 	local w = conn.write;
   731 	local w = conn.write;
   732 
   732 
       
   733 	if conn:ssl() then
       
   734 		session_secure(session);
       
   735 	end
       
   736 
   733 	function session.sends2s(t)
   737 	function session.sends2s(t)
   734 		log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
   738 		log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
   735 		if t.name then
   739 		if t.name then
   736 			t = filter("stanzas/out", t);
   740 			t = filter("stanzas/out", t);
   737 		end
   741 		end