diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-01-28 21:38:27 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-01-28 21:38:27 +0800 |
commit | a7a79d569a41b282da63c159fc8032b4472a2a73 (patch) | |
tree | 8eb7d57e766727bd1c8c720f2093f41adefa880d /svr-runopts.c | |
parent | 6165f53fcd6be9bb06fc3cd29e8640bb14d95111 (diff) |
Disable non-delayed zlib for server
Diffstat (limited to 'svr-runopts.c')
-rw-r--r-- | svr-runopts.c | 8 |
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; |