Skip to content

Commit

Permalink
session client BUGFIX set ka default values
Browse files Browse the repository at this point in the history
  • Loading branch information
roman authored and michalvasko committed Oct 18, 2024
1 parent ec3fcaa commit bea6c3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/session_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bea6c3f

Please sign in to comment.