]> 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>
Thu, 19 Jan 2017 16:25:18 +0000 (00:25 +0800)
committerGert Doering <gert@greenie.muc.de>
Tue, 21 Feb 2017 15:34:02 +0000 (16:34 +0100)
commit5340f56b62c9fe7ad892e815029321f378660714
tree9c50b80dbf51ebb569dfcf7f6b2da808a6a550b7
parentc74d574417b8b491fe6ad44e89843af8479cc9be
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.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170119162518.31752-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13905.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 14670a9d654be48f92b58ac47e6f74d3dcfe1733)
src/openvpn/route.c