0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
openvpn3/openvpn/ovpnagent
Lev Stipakov 41e96f96a6
Add IPv6 support to "get best gateway" Windows logic
The current implementation of "get best gateway"
is completely unaware of IPv6. Because of that
agent-enabled client is not able to connect to IPv6
server. This happens because the first call to agent
(add-bypass-route) fails, since we pass IPv6 address,
which agent tries to intrepret as IPv4 and fails.

Moreover, "add bypass route" logic looks for the best gateway
for the given remote, and the API we use (GetIpForwardTable and
GetBestGateway) doesn't work with IPv6.

This adds IPv6 support to BestGateway class and "add bypass route"
logic. For that we use IPv6-aware API such as GetIpForwardTable2
and own IP::Addr/4/6 absactions.

Fixes OVPN3-959.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-04-24 13:07:36 +02:00
..
mac Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
win Add IPv6 support to "get best gateway" Windows logic 2023-04-24 13:07:36 +02:00