From a7a79d569a41b282da63c159fc8032b4472a2a73 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 28 Jan 2015 21:38:27 +0800 Subject: Disable non-delayed zlib for server --- svr-runopts.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'svr-runopts.c') 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; -- cgit v1.2.3