diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-02-11 23:27:25 +0100 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-02-11 23:27:25 +0100 |
commit | 6ae69e0df08d8f75ee538e8a6ea8d7b0f6641173 (patch) | |
tree | 45dc43fa28778272174eb8e501240ea8e12752c1 /libssh | |
parent | 92ca76721aa06eb12d68489e48947db177667fd2 (diff) | |
download | libssh-6ae69e0df08d8f75ee538e8a6ea8d7b0f6641173.tar.gz libssh-6ae69e0df08d8f75ee538e8a6ea8d7b0f6641173.tar.xz libssh-6ae69e0df08d8f75ee538e8a6ea8d7b0f6641173.zip |
Try zlib compression and fallback to none if not available.
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/config.c b/libssh/config.c index 1c17b8cc..fe3678f2 100644 --- a/libssh/config.c +++ b/libssh/config.c @@ -227,8 +227,8 @@ static int ssh_config_parse_line(ssh_session session, const char *line, i = ssh_config_get_yesno(&s, -1); if (i >= 0 && *parsing) { if (i) { - ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib"); - ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib"); + ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib,none"); + ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib,none"); } else { ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "none"); ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "none"); |