From bea6c3f16fa883353a5d156f4e7ef31c4fc26520 Mon Sep 17 00:00:00 2001 From: roman Date: Fri, 18 Oct 2024 09:48:39 +0200 Subject: [PATCH] session client BUGFIX set ka default values --- src/session_client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/session_client.c b/src/session_client.c index be48d0cd..9438f0a4 100644 --- a/src/session_client.c +++ b/src/session_client.c @@ -165,6 +165,10 @@ nc_client_context_location(void) e = calloc(1, sizeof *e); /* set default values */ e->refcount = 1; + e->opts.ka.enabled = 1; + e->opts.ka.idle_time = 1; + e->opts.ka.max_probes = 10; + e->opts.ka.probe_interval = 5; #ifdef NC_ENABLED_SSH_TLS # ifdef HAVE_TERMIOS e->ssh_opts.knownhosts_mode = NC_SSH_KNOWNHOSTS_ASK;