]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Set o->use_peer_id flag for p2p mode
authorLev Stipakov <lev@openvpn.net>
Tue, 24 May 2022 09:19:16 +0000 (12:19 +0300)
committerGert Doering <gert@greenie.muc.de>
Thu, 23 Jun 2022 13:22:37 +0000 (15:22 +0200)
commit0d46c4963ae47581eadd94dbd2190c66086b9ecb
tree7a93891d17442811ad857db4fa8f0bff2b4297af
parent65c6308608e5a637564db0cf241a16501190342a
Set o->use_peer_id flag for p2p mode

There are two flags to indicate peer-id usage, one is
in tls_multi struct and another one is in options.

For P2P mode we don't set this flag in options,
which is used in MTU calculation. As a result,
automatically calculated MSS value in P2P mode is wrong,

Fix by bring use_peer_id flag in options and tls_multi
into sync for P2P.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <20220524091916.145-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24430.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c