summaryrefslogtreecommitdiffhomepage
path: root/svr-runopts.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-runopts.c')
-rw-r--r--svr-runopts.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/svr-runopts.c b/svr-runopts.c
index 1360813..09fc9af 100644
--- a/svr-runopts.c
+++ b/svr-runopts.c
@@ -140,9 +140,15 @@ void svr_getopts(int argc, char ** argv) {
#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;