DefGuard / client

Best WireGuard desktop client with Multi-Factor Authentication
67 stars 9 forks source link

Can't Add IPv6 Address as Address #191

Open Rishi556 opened 5 months ago

Rishi556 commented 5 months ago

Tried to add my config and got an issue on the address section:

image

It fails wether I have just the v6 address, a v6 and a v4 address.

image

Only way I got it to work was by removing the IPv6 address:

image
Rishi556 commented 5 months ago

Looks like the same thing happens in the DNS section and the VPN server address section:

image
teon commented 5 months ago

Oh, we need to fix the validation. Will do next sprint.

Rishi556 commented 5 months ago

https://github.com/DefGuard/client/pull/197 seems to have fixed part of the issue. I still see it not accepting both IPv6 and IPv4 address under the address section at once. I'm importing the same file that I use on the native WG client.

No errors when initially importing:

image

After hitting submit:

image

Using just the IPv6 address does work, seems to have issues with both a v4 and v6 address at once. I guess that it's truly a different issue at hand though.

Here's a sanitized version of the config file:

[Interface]
PrivateKey = ABC123
Address = 10.0.0.1/32, 2600:db8::1/128
DNS = 2606:4700:4700::1111

[Peer]
PublicKey = ABC123
PresharedKey = ABC123
AllowedIPs = ::0/0, 0.0.0.0/0
Endpoint = [2600:db8::2]:443