1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Enable compression

This commit is contained in:
Nicolas Viennot 2013-06-10 05:51:04 -04:00
parent 7d78035e42
commit e0861e170a

View File

@ -22,6 +22,8 @@ static void client_bootstrap(struct tmate_ssh_client *client)
setsockopt(ssh_get_fd(session), IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(flag));
alarm(SSH_GRACE_PERIOD);
ssh_options_set(session, SSH_OPTIONS_COMPRESSION, "yes");
tmate_debug("Exchanging DH keys");
if (ssh_handle_key_exchange(session) < 0)