]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Ignore --explicit-exit-notify in TCP mode.
authorGert Doering <gert@greenie.muc.de>
Mon, 2 Aug 2021 13:31:27 +0000 (15:31 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 5 Aug 2021 15:29:22 +0000 (17:29 +0200)
commit7953b07bf56c1df0f895ef0702a7732564de5ce9
tree597536652578ba34f8fdf5bc7c9ac3b7d65674f2
parentf9dbf645fa5b6fdda06abebedbed772a83d8f0d9
Ignore --explicit-exit-notify in TCP mode.

Mixed udp+tcp configs can not have --explicit-exit-notify in them
today because this option is refused in TCP mode.  At the same time,
it was always possible to push the option both in UDP and TCP mode
(with a warning logged in TCP mode, and the option reset to 0).

Do the same thing for local config - warn, and reset to 0.

(Leaving it enabled in TCP mode is harmless, but causes extra error
messages in the log which is undesired behaviour.  Maybe one should
just fix the underlying logic for TCP mode instead, but this is more
invasive)

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210802133127.25000-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22690.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c