diff svr-runopts.c @ 997:e75316906852 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Jan 2015 21:40:34 +0800
parents 47643024fc90
children 67d8a904f5a9
line wrap: on
line diff
--- a/svr-runopts.c	Sun Jan 04 22:33:12 2015 +0800
+++ b/svr-runopts.c	Wed Jan 28 21:40:34 2015 +0800
@@ -140,9 +140,15 @@
 #ifdef ENABLE_SVR_REMOTETCPFWD
 	svr_opts.noremotetcp = 0;
 #endif
+
 #ifndef DISABLE_ZLIB
-	opts.enable_compress = 1;
+#if DROPBEAR_SERVER_DELAY_ZLIB
+	opts.compress_mode = DROPBEAR_COMPRESS_DELAYED;
+#else
+	opts.compress_mode = DROPBEAR_COMPRESS_ON;
 #endif
+#endif 
+
 	/* not yet
 	opts.ipv4 = 1;
 	opts.ipv6 = 1;