From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Tue, 29 Mar 2022 09:26:11 +0000 (+0200) Subject: Fix --reconnect-timeout documentation X-Git-Tag: v9.00~77 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=63e4b85b16156f7de4b0f22c339c66845f4a158e;p=users%2Fdwmw2%2Fopenconnect.git Fix --reconnect-timeout documentation Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Signed-off-by: Daniel Lenski --- diff --git a/main.c b/main.c index 65be6a2f..166121f2 100644 --- a/main.c +++ b/main.c @@ -952,7 +952,7 @@ static void usage(void) #ifndef LIBPROXY_HDR printf(" %s\n", _("(NOTE: libproxy disabled in this build)")); #endif - printf(" --reconnect-timeout %s\n", _("Connection retry timeout in seconds")); + printf(" --reconnect-timeout=SECONDS %s\n", _("Reconnection retry timeout (default is 300 seconds)")); printf(" --resolve=HOST:IP %s\n", _("Use IP when connecting to HOST")); printf(" --passtos %s\n", _("Copy TOS / TCLASS field into DTLS and ESP packets")); printf(" --dtls-local-port=PORT %s\n", _("Set local port for DTLS and ESP datagrams")); diff --git a/openconnect.8.in b/openconnect.8.in index 401de424..3fd5a05d 100644 --- a/openconnect.8.in +++ b/openconnect.8.in @@ -63,7 +63,7 @@ openconnect \- Multi-protocol VPN client, for Cisco AnyConnect VPNs and others .OP \-\-protocol proto .OP \-\-token\-mode mode .OP \-\-token\-secret {secret\fR[\fI,counter\fR]|@\fIfile\fR} -.OP \-\-reconnect\-timeout +.OP \-\-reconnect\-timeout seconds .OP \-\-resolve host:ip .OP \-\-servercert sha1 .OP \-\-useragent string @@ -629,10 +629,12 @@ If this option is omitted, and \-\-token\-mode is .B ~/.stokenrc by the "stoken import" command. .TP -.B \-\-reconnect\-timeout -Keep reconnect attempts until so much seconds are elapsed. The default -timeout is 300 seconds, which means that openconnect can recover -VPN connection after a temporary network down time of 300 seconds. +.B \-\-reconnect\-timeout=SECONDS +After disconnection or Dead Peer Detection, keep trying to reconnect for +.IR SECONDS . +The default is 300 seconds, which means that +openconnect can recover a VPN connection after a temporary network outage +lasting up to 300 seconds. .TP .B \-\-resolve=HOST:IP Automatically resolve the hostname