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

No keepalives for libssh >= 0.8.4 due to bug in keepalive

This commit is contained in:
Nicolas Viennot 2018-11-18 21:21:10 -05:00
parent 3fc67466ad
commit 8b294f3270

View File

@ -29,6 +29,13 @@ static void on_keepalive_timer(__unused evutil_socket_t fd,
{
struct tmate_ssh_client *client = arg;
/*
* libssh-0.8.4 or higher have a broken keepalive implementation due
* to packet filtering.
*/
if (ssh_version(SSH_VERSION_INT(0,8,4)))
return;
if (ssh_send_keepalive(client->session) == SSH_ERROR)
return;