diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-07-09 00:15:20 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-07-09 00:15:20 +0800 |
commit | c884e5000e881f45e5c2328e219eebd07b0560ca (patch) | |
tree | 59c2280892aff108c15690290ad4adbc1f4e2012 /cli-runopts.c | |
parent | 1ccac01cee0222be332b46d7102336465760aa11 (diff) |
Make -K keepalive behave like OpenSSH's ServerAliveInterval
Diffstat (limited to 'cli-runopts.c')
-rw-r--r-- | cli-runopts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli-runopts.c b/cli-runopts.c index d8b250a..f8e289b 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -163,6 +163,8 @@ void cli_getopts(int argc, char ** argv) { opts.ipv6 = 1; */ opts.recv_window = DEFAULT_RECV_WINDOW; + opts.keepalive_secs = DEFAULT_KEEPALIVE; + opts.idle_timeout_secs = DEFAULT_IDLE_TIMEOUT; fill_own_user(); |