fix receiving end of MCCP2
diff --git a/libtelnet.c b/libtelnet.c
index 005b1d2..5bf5295 100644
--- a/libtelnet.c
+++ b/libtelnet.c
@@ -565,14 +565,10 @@
 						telnet->sb_telopt, telnet->buffer, telnet->buffer_pos);
 
 #ifdef HAVE_ZLIB
-				/* if we are a client or a proxy and just received the
-				 * COMPRESS2 begin marker, setup our zlib box and start
-				 * handling the compressed stream if it's not already.
+				/* received COMPRESS2 begin marker, setup our zlib box and
+				 * start handling the compressed stream if it's not already.
 				 */
-				if (telnet->sb_telopt == LIBTELNET_TELOPT_COMPRESS2 &&
-						telnet->z == 0 &&
-						telnet->flags & LIBTELNET_FLAG_PROXY) {
-
+				if (telnet->sb_telopt == LIBTELNET_TELOPT_COMPRESS2) {
 					if (_init_zlib(telnet, 0, 1) != LIBTELNET_EOK)
 						break;