]> 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:28:55 +0000 (16:28 +0100)
commit14670a9d654be48f92b58ac47e6f74d3dcfe1733
treecc0072ad6e44375c03b6e11f8040a4a2843415be
parentfce9d75b2c44c354457522643eddc914e41f2d84
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>
src/openvpn/route.c