]> 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:45:44 +0000 (16:45 +0100)
commita0e844c892d6f67977bf8e9162cbc43a3f64ba46
tree013e2558a68a1bb70536df98cf353092352c7e3b
parent24c1fc2a0ab5fa113d6769ab090de12e3719ab6b
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>
(cherry picked from commit 5a2ed714d14acb2312d27fe40e300be96d970c27)
src/openvpn/options.c
src/openvpn/options.h