Diff

plugins/mod_compression.lua @ 6055:596539a30e9b

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Apr 2014 17:42:22 +0100
parent 6054:7a5ddbaf758d
child 6056:29cbbe882441
line wrap: on
line diff
--- a/plugins/mod_compression.lua	Tue Mar 25 19:18:32 2014 +0100
+++ b/plugins/mod_compression.lua	Wed Apr 02 17:42:22 2014 +0100
@@ -125,8 +125,8 @@
 
 module:hook("stanza/http://jabber.org/protocol/compress:compressed", function(event)
 	local session = event.origin;
-
-	if session.type == "s2sout_unauthed" or session.type == "s2sout" then
+	
+	if session.type == "s2sout" then
 		session.log("debug", "Activating compression...")
 		-- create deflate and inflate streams
 		local deflate_stream = get_deflate_stream(session);
@@ -150,7 +150,7 @@
 module:hook("stanza/http://jabber.org/protocol/compress:compress", function(event)
 	local session, stanza = event.origin, event.stanza;
 
-	if session.type == "c2s" or session.type == "s2sin" or session.type == "c2s_unauthed" or session.type == "s2sin_unauthed" then
+	if session.type == "c2s" or session.type == "s2sin" then
 		-- fail if we are already compressed
 		if session.compressed then
 			local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("setup-failed");