Diff

plugins/mod_c2s.lua @ 10226:77f900bbbf25

Remove COMPAT with temporary luasec fork The changes in the temporary fork were merged into mainline luasec ca 2013 and included in the 0.5 release in 2014.
author Kim Alvefur <zash@zash.se>
date Sun, 25 Aug 2019 23:12:55 +0200
parent 10111:0f335815244f
child 10379:b917602eac04
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Sun Aug 25 21:31:04 2019 +0200
+++ b/plugins/mod_c2s.lua	Sun Aug 25 23:12:55 2019 +0200
@@ -97,7 +97,6 @@
 			session.compressed = info.compression;
 		else
 			(session.log or log)("info", "Stream encrypted");
-			session.compressed = sock.compression and sock:compression(); --COMPAT mw/luasec-hg
 		end
 	end
 
@@ -257,8 +256,6 @@
 		local sock = conn:socket();
 		if sock.info then
 			session.compressed = sock:info"compression";
-		elseif sock.compression then
-			session.compressed = sock:compression(); --COMPAT mw/luasec-hg
 		end
 	end