]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Make --nobind default for --pull
authorArne Schwabe <arne@rfc2549.org>
Mon, 6 Dec 2021 01:00:07 +0000 (02:00 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 6 Dec 2021 17:06:45 +0000 (18:06 +0100)
commitde02c828f5aa3fbaca78918d4392b48b47547770
tree01426109a7bffb006b9148db8f6f7dec8e206ae0
parent868433857fbf8d71515ac0ffecb98eae893515dc
Make --nobind default for --pull

Currently we default to local binding with udp. But the majority of
configuration files actually uses --nobind in the configuration to
change the default for --client. And client protocols should normally
use a random source port. This changes the default. Local binding with
--client can still be done using --bind.

This commit refactors the current code to be more easy to add to understand
and adds the the o->pull condition as additional option to opt into setting
local binding to false.

Patch v2: add more commments

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20211206010007.3072528-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23303.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Changes.rst
src/openvpn/options.c