From: Selva Nair Date: Sun, 20 Nov 2016 21:18:54 +0000 (-0500) Subject: Do not set ipv6 address if '--ip-win32 manual' is used X-Git-Tag: v2.4_beta2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ad8cac443f7f7540da595a3dbe7082d0f0a0cf;p=thirdparty%2Fopenvpn.git Do not set ipv6 address if '--ip-win32 manual' is used This also applies to --ifconfig-noexec. Resolves Trac #723 Signed-off-by: Selva Nair Acked-by: Gert Doering Message-Id: <1479676734-21630-1-git-send-email-selva.nair@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13143.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 77ae72fa8..36e0b15be 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -1372,7 +1372,13 @@ do_ifconfig (struct tuntap *tt, if ( do_ipv6 ) { - if (tt->options.msg_channel) + if (tt->options.ip_win32_type == IPW32_SET_MANUAL) + { + msg (M_INFO, "******** NOTE: Please manually set the v6 IP of '%s' to %s (if it is not already set)", + actual, + ifconfig_ipv6_local); + } + else if (tt->options.msg_channel) { do_address_service (true, AF_INET6, tt); } @@ -1391,7 +1397,10 @@ do_ifconfig (struct tuntap *tt, } /* explicit route needed */ - add_route_connected_v6_net(tt, es); + if (tt->options.ip_win32_type != IPW32_SET_MANUAL) + { + add_route_connected_v6_net(tt, es); + } } #else msg (M_FATAL, "Sorry, but I don't know how to do 'ifconfig' commands on this operating system. You should ifconfig your TUN/TAP device manually or use an --up script.");