]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun.c: reorder IPv6 ifconfig on Windows
authorSimon Rozman <simon@rozman.si>
Tue, 10 Mar 2020 09:48:21 +0000 (10:48 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 14 Mar 2020 12:40:25 +0000 (13:40 +0100)
commitf3ef6ced23b659855ac8b957e147fa8b58578098
tree71ac460d25bcdf7295d737777835b4748da5da49
parent5d28b47c51f4fcef631f9dae83f9cbc7120c6812
tun.c: reorder IPv6 ifconfig on Windows

The IPv6 interface network route should be setup as soon as possible
after the interface address is set. Actually, all routes should be added
before DNS servers are configured. This would allow Windows to validate
DNS servers properly instead of shutting the validation off.

The cleanup order has been changed to match reverse order of ifconfig.
An additional check was added to skip the cleanup when --ip-win32 is set
to manual.

Signed-off-by: Simon Rozman <simon@rozman.si>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20200310094822.588-1-simon@rozman.si>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19541.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c