]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix --reconnect-timeout documentation
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Tue, 29 Mar 2022 09:26:11 +0000 (11:26 +0200)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 30 Mar 2022 21:06:56 +0000 (14:06 -0700)
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
main.c
openconnect.8.in

diff --git a/main.c b/main.c
index 65be6a2f1e1d791567dfddde9cf1de7c1feb2ca4..166121f2bce2b4649976da0429bfae0b7df71058 100644 (file)
--- 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"));
index 401de424eab7afaec584231597392921cddfa682..3fd5a05d7a5baaee1315586fd5a1d0d92ecbdbe9 100644 (file)
@@ -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