diff cli-runopts.c @ 939:a0819ecfee0b

Make -K keepalive behave like OpenSSH's ServerAliveInterval
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 Jul 2014 00:15:20 +0800
parents 5608a5a61c2a
children 17d874ae93a1
line wrap: on
line diff
--- a/cli-runopts.c	Wed Jul 09 00:13:17 2014 +0800
+++ b/cli-runopts.c	Wed Jul 09 00:15:20 2014 +0800
@@ -163,6 +163,8 @@
 	opts.ipv6 = 1;
 	*/
 	opts.recv_window = DEFAULT_RECV_WINDOW;
+	opts.keepalive_secs = DEFAULT_KEEPALIVE;
+	opts.idle_timeout_secs = DEFAULT_IDLE_TIMEOUT;
 
 	fill_own_user();