]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Restore also ping related options on a reconnect
authorArne Schwabe <arne@rfc2549.org>
Wed, 17 Mar 2021 16:00:38 +0000 (17:00 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 23 Mar 2021 15:22:25 +0000 (16:22 +0100)
commit5a2ed714d14acb2312d27fe40e300be96d970c27
tree06f01eddd30d1d1f03f2f3ec04552e26dae9d571
parent7064ccb9fd3578c0b25713b1c8e620ad9449f7f4
Restore also ping related options on a reconnect

This fixes the issue that if a client reconnects the next connection
entries inherits the keepalive settings that were pushed or set by
the previous entry. Since UDP+PULL entries have an implicit 120s
timeout, this timeout also got applied to a TCP session after an
UDP entry.

Patch v2: rebase on master

Reported-By: Jan Just Keijser <janjust@nikhef.nl>
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210317160038.25828-3-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21675.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c
src/openvpn/options.h