]> git.ipfire.org Git - thirdparty/openvpn.git/commit
fix redirect-gateway behaviour when an IPv4 default route does not exist
authorAntonio Quartulli <a@unstable.cc>
Tue, 9 May 2017 15:24:22 +0000 (23:24 +0800)
committerGert Doering <gert@greenie.muc.de>
Thu, 18 May 2017 17:40:00 +0000 (19:40 +0200)
commit0b339bf9588a8bca70b74926f03f8be05f06faa6
treed34ea41eb6156b33cd768c9e6798817e26953aeb
parent04c84548c2e1f3ef55b6737b454ba5b4d903b319
fix redirect-gateway behaviour when an IPv4 default route does not exist

When no IPv4 default route exists, the "redirect-gateway" routine
aborts even if the sub-option "local" was specified or if we are
connecting to the remote host using IPv6.

This is not expected because in either case OpenVPN should not
bother checking the existence of the default route as it is not
required at all.

Therefore, skip the IPv4 default route check when "local" is
specified or we are connecting to an IPv6 remote host.

(This is a cherry-pick of 14670a9d654b (master), adapted to 2.3 code)

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170509152422.12606-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14602.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/route.c